PSCodeProperty Constructor

Creates a new instance of the PSCodeProperty class with the name of the code property. The variants of this constructor can create the class with the method used to get the property value, and create the class with methods used to get and set the property value.

A code property is any property that has a getter and setter that is defined in a common language runtime (CLR) language. For more information about code properties in addition to other property types defined by the extended type system (ETS), see ETS Properties. For more information about the extended type system (ETS), see Windows PowerShell Extended Type System (ETS).

NameDescription
PSCodeProperty (String, MethodInfo)Creates a new instance of the PSCodeProperty class with the name of the code property and the method used to get the property value.
PSCodeProperty (String, MethodInfo, MethodInfo)Creates a new instance of the PSCodeProperty class with the name of the code property and the methods used to get and set the property value.


Show:
© 2015 Microsoft