PSCodeProperty Class

Definition

Serves as a property implemented with references to methods for getter and setter.

public class PSCodeProperty : System.Management.Automation.PSPropertyInfo
Inheritance

Inherited Members

System.Management.Automation.PSMemberInfo

Remarks

It is permitted to subclass PSCodeProperty but there is no established scenario for doing this, nor has it been tested.

Constructors

PSCodeProperty(String, MethodInfo)

Initializes a new instance of the PSCodeProperty class as a read only property.

PSCodeProperty(String, MethodInfo, MethodInfo)

Initializes a new instance of the PSCodeProperty class. Setter or getter can be null, but both cannot be null.

Properties

GetterCodeReference

Gets the method used for the properties' getter. It might be null.

IsGettable

Gets true if this property can be read

IsSettable

Gets true if this property can be set

MemberType

Gets the member type

SetterCodeReference

Gets the method used for the properties' setter. It might be null.

TypeNameOfValue

Gets the type of the value for this member

Value

Gets and Sets the value of this member

Methods

Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

ToString()

Returns the string representation of this property