Freigeben über


PSCodeProperty Class

Definition

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

public ref class PSCodeProperty : System::Management::Automation::PSPropertyInfo
public class PSCodeProperty : System.Management.Automation.PSPropertyInfo
type PSCodeProperty = class
    inherit PSPropertyInfo
Public Class PSCodeProperty
Inherits PSPropertyInfo
Inheritance

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, MethodInfo)

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

PSCodeProperty(String, MethodInfo)

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

Properties

GetterCodeReference

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

IsGettable

Gets true if this property can be read.

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

Gets true if this property can be set.

MemberType

Gets the member type.

Name

Gets the member name.

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

SetMemberName(String)

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

(Inherited from PSMemberInfo)
ToString()

Returns the string representation of this property.

Applies to