PSVariableProperty Class

Definition

Serves as a property that is a simple name-value pair.

public class PSVariableProperty : System.Management.Automation.PSNoteProperty
Inheritance

Inherited Members

System.Management.Automation.PSMemberInfo

Remarks

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

Constructors

PSVariableProperty(PSVariable)

Initiializes a new instance of the PSVariableProperty class. This is a subclass of the NoteProperty that wraps a variable instead of a simple value.

Properties

IsGettable

Gets true since the value of an PSNoteProperty can always be obtained

IsSettable

True if the underlying variable is settable...

MemberType

Gets PSMemberTypes.NoteProperty

TypeNameOfValue

Gets the type of the value for this member

Value

Gets or sets the value of this property

Methods

Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo, Note that it returns another reference to the variable, not a reference to a new variable...

ToString()

Returns the string representation of this property