PSCodeProperty PSCodeProperty PSCodeProperty Class

Definition

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

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) PSCodeProperty(String, MethodInfo) PSCodeProperty(String, MethodInfo)

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

PSCodeProperty(String, MethodInfo, MethodInfo) PSCodeProperty(String, MethodInfo, MethodInfo) 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 GetterCodeReference GetterCodeReference

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

IsGettable IsGettable IsGettable

Gets true if this property can be read

IsInstance IsInstance IsInstance Inherited from PSMemberInfo
IsSettable IsSettable IsSettable

Gets true if this property can be set

MemberType MemberType MemberType

Gets the member type

Name Name Name Inherited from PSMemberInfo
SetterCodeReference SetterCodeReference SetterCodeReference

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

TypeNameOfValue TypeNameOfValue TypeNameOfValue

Gets the type of the value for this member

Value Value Value

Gets and Sets the value of this member

Methods

Copy() Copy() Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

SetMemberName(String) SetMemberName(String) SetMemberName(String) Inherited from PSMemberInfo
ToString() ToString() ToString()

Returns the string representation of this property

Applies to