Updated: April 27, 2016
Applies To: Windows PowerShell
Represents an extended script property of a PSObject object.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Initializes a new instance of theclass that contains the property name and a getter script.
|PSScriptProperty(String, ScriptBlock, ScriptBlock)|
Initializes a new instance of theclass that contains the property name, getter script, and setter script.
Gets the getter script for the script property.
Gets a value that indicates whether the value of the script property can be retrieved.(Overrides PSPropertyInfo.IsGettable.)
Gets a value that indicates whether the source of the member is a type configuration file.(Inherited from PSMemberInfo.)
Gets a value that indicates whether the value of the script property can be set.(Overrides PSPropertyInfo.IsSettable.)
Gets an identifier that indicates this property is an ETS script property. (Overrides PSMemberInfo.MemberType.)
Gets the name of the extended member (method, property, or member set).(Inherited from PSMemberInfo.)
Gets the setter script of the script property.
Gets the .NET Framework type name of the object that is returned by the getter script. (Overrides PSMemberInfo.TypeNameOfValue.)
Gets and sets the value of the script property. (Overrides PSMemberInfo.Value.)
Makes a 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 script property is a property that has getter and setter scripts. For more information about script properties as well as other property types defined by the extended type system (ETS), see ETS Properties [ps]. For more information about the 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 may 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.