次の方法で共有


PSVariableProperty Class

Definition

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

public ref class PSVariableProperty : System::Management::Automation::PSNoteProperty
public class PSVariableProperty : System.Management.Automation.PSNoteProperty
type PSVariableProperty = class
    inherit PSNoteProperty
Public Class PSVariableProperty
Inherits PSNoteProperty
Inheritance

Remarks

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

Constructors

PSVariableProperty(PSVariable)

Initializes 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.

IsInstance

True if this member has been added to the instance as opposed to coming from the adapter or from type data.

(Inherited from PSMemberInfo)
IsSettable

True if the underlying variable is settable...

MemberType

Gets PSMemberTypes.NoteProperty.

Name

Gets the member name.

(Inherited from PSMemberInfo)
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...

SetMemberName(String)

Allows a derived class to set the member name...

(Inherited from PSMemberInfo)
ToString()

Returns the string representation of this property.

Applies to