PSScriptProperty Class
TOC
Collapse the table of content
Expand the table of content

PSScriptProperty Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an extended script 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.PSScriptProperty

Public Class PSScriptProperty
	Inherits PSPropertyInfo

NameDescription
System_CAPS_pubmethodPSScriptProperty(String, ScriptBlock)

Initializes a new instance of the PSScriptProperty class that contains the property name and a getter script.

System_CAPS_pubmethodPSScriptProperty(String, ScriptBlock, ScriptBlock)

Initializes a new instance of the PSScriptProperty class that contains the property name, getter script, and setter script.

NameDescription
System_CAPS_pubpropertyGetterScript

Gets the getter script for the script property.

System_CAPS_pubpropertyIsGettable

Gets a value that indicates whether the value of the script 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 value that indicates whether the value of the script property can be set.(Overrides PSPropertyInfo.IsSettable.)

System_CAPS_pubpropertyMemberType

Gets an identifier that indicates this property is an ETS script property. (Overrides PSMemberInfo.MemberType.)

System_CAPS_pubpropertyName

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

System_CAPS_pubpropertySetterScript

Gets the setter script of the script property.

System_CAPS_pubpropertyTypeNameOfValue

Gets the .NET Framework type name of the object that is returned by the getter script. (Overrides PSMemberInfo.TypeNameOfValue.)

System_CAPS_pubpropertyValue

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

NameDescription
System_CAPS_pubmethodCopy()

Makes a copy of the current PSScriptProperty 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 PSScriptProperty object to a string. (Overrides Object.ToString().)

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.

Return to top
Show:
© 2016 Microsoft