Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSCodeProperty Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an extended code property of a PSObject object.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSMemberInfo
    System.Management.Automation.PSPropertyInfo
      System.Management.Automation.PSCodeProperty

public class PSCodeProperty : PSPropertyInfo

NameDescription
System_CAPS_pubmethodPSCodeProperty(String, MethodInfo)

Creates a new instance of the PSCodeProperty class with the name of the code property and the method used to get the property value.

System_CAPS_pubmethodPSCodeProperty(String, MethodInfo, MethodInfo)

Creates a new instance of the PSCodeProperty class with the name of the code property and the methods used to get and set the property value.

NameDescription
System_CAPS_pubpropertyGetterCodeReference

Gets the method used to get the value of the code property.

System_CAPS_pubpropertyIsGettable

Gets a Boolean value that indicates whether the value of the code property can be retrieved.(Overrides PSPropertyInfo.IsGettable.)

System_CAPS_pubpropertyIsInstance

Gets a value that indicates whether the source of the member is a type configuration file.(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyIsSettable

Gets a Boolean value that indicates whether the value of the code property can be set.(Overrides PSPropertyInfo.IsSettable.)

System_CAPS_pubpropertyMemberType

Gets a constant that identifies this property as a code property.(Overrides PSMemberInfo.MemberType.)

System_CAPS_pubpropertyName

Gets the name of the extended member (method, property, or member set).(Inherited from PSMemberInfo.)

System_CAPS_pubpropertySetterCodeReference

Gets the method used to set the value of the code property.

System_CAPS_pubpropertyTypeNameOfValue

Gets the .NET Framework type of the property value that is returned by the get operation of the code property.(Overrides PSMemberInfo.TypeNameOfValue.)

System_CAPS_pubpropertyValue

Gets and sets the value of the code property.(Overrides PSMemberInfo.Value.)

NameDescription
System_CAPS_pubmethodCopy()

Makes an exact copy of the current PSCodeProperty object.(Overrides PSMemberInfo.Copy().)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSetMemberName(String)

Sets the name of the extended member. This method is introduced in Windows PowerShell 2.0.(Inherited from PSMemberInfo.)

System_CAPS_pubmethodToString()

Converts the current PSCodeProperty object to a string.(Overrides Object.ToString().)

A code property is any property that has a getter and setter that is defined in a common language runtime (CLR) language. For more information about code properties in addition to other property types defined by the extended type system (ETS), see ETS Properties [ps]. For more information about the extended type system (ETS), see Windows PowerShell Extended Type System (ETS) [ps].

Although it is possible to derive from this class, there is no established scenario for doing this and any attempt to do so might result in unexpected behavior.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: