Updated: April 27, 2016
Applies To: Windows PowerShell
Represents an extended code property of a PSObject object.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Creates a new instance of theclass with the name of the code property and the method used to get the property value.
|PSCodeProperty(String, MethodInfo, MethodInfo)|
Creates a new instance of theclass with the name of the code property and the methods used to get and set the property value.
Gets the method used to get the value of the code property.
Gets a value that indicates whether the source of the member is a type configuration file.(Inherited from PSMemberInfo.)
Gets a constant that identifies this property as a code property.(Overrides PSMemberInfo.MemberType.)
Gets the name of the extended member (method, property, or member set).(Inherited from PSMemberInfo.)
Gets the method used to set the value of the code property.
Gets the .NET Framework type of the property value that is returned by the get operation of the code property.(Overrides PSMemberInfo.TypeNameOfValue.)
Gets and sets the value of the code property.(Overrides PSMemberInfo.Value.)
Makes an exact copy of the current PSMemberInfo.Copy().)object.(Overrides
Sets the name of the extended member. This method is introduced in Windows PowerShell 2.0.(Inherited from PSMemberInfo.)
Converts the current Object.ToString().)object to a string.(Overrides
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.