Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 521 Vote(s) - 3.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is a PowerShell NoteProperty?

#1
The only definition of NoteProperty I've been able to find said they are properties inherited from the PowerShell environment. That doesn't really clarify what they are or how they are used. All the blog posts I've found that reference NoteProperty all seem to assume everyone already knows what they are. "NoteProperty" is even missing from the [TechNet PowerShell Glossary][1].

What is a NoteProperty and how does that differ from a normal property?


[1]:

[To see links please register here]

Reply

#2
>NoteProperty A property of the object with a static value. Note that properties are defined as a name-value pair, such as "Color=Blue".

Usualy this is use to add a property to a pscustomobject using [add-member][1]

see [PSMemberTypeEnumeration][2]


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#3
NoteProperties are generic properties that are created by Powershell (as opposed to properties that are inherited from a specific dotnet object type).

Properties of PS custom objects will be NoteProperty, as will the properties of objects created with Import-CSV, or created by using Select-Object and specifying properties to select.

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through