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.

PSAliasProperty Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an alias to another extended 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.PSAliasProperty

public class PSAliasProperty : PSPropertyInfo

NameDescription
System_CAPS_pubmethodPSAliasProperty(String, String)

Creates a new instance of the PSAliasProperty class with the name of the alias and the name of the extended property that this alias refers to.

System_CAPS_pubmethodPSAliasProperty(String, String, Type)

Creates a new instance of the PSAliasProperty class with the name of the alias, the name of the extended property that this alias refers to, and the .NET Framework type that is used to convert the referenced property value.

NameDescription
System_CAPS_pubpropertyConversionType

Gets the .NET Framework type that is used to convert the referenced property value.

System_CAPS_pubpropertyIsGettable

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

System_CAPS_pubpropertyMemberType

Gets an AliasProperty constant that identifies this property as an alias property.(Overrides PSMemberInfo.MemberType.)

System_CAPS_pubpropertyName

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

System_CAPS_pubpropertyReferencedMemberName

Gets the name of the referenced property that this alias refers to.

System_CAPS_pubpropertyTypeNameOfValue

Gets the full name of the .NET Framework type of the referenced property value.(Overrides PSMemberInfo.TypeNameOfValue.)

System_CAPS_pubpropertyValue

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

NameDescription
System_CAPS_pubmethodCopy()

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

For more information about alias properties in addition to other property types that are 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: