PSAliasProperty PSAliasProperty PSAliasProperty Class

Definition

Serves as an alias to another member

public class PSAliasProperty : System.Management.Automation.PSPropertyInfo
type PSAliasProperty = class
    inherit PSPropertyInfo
Public Class PSAliasProperty
Inherits PSPropertyInfo
Inheritance

Remarks

It is permitted to subclass PSAliasProperty but there is no established scenario for doing this, nor has it been tested.

Constructors

PSAliasProperty(String, String) PSAliasProperty(String, String) PSAliasProperty(String, String)

Initializes a new instance of PSAliasProperty setting the name of the alias and the name of the member this alias refers to.

PSAliasProperty(String, String, Type) PSAliasProperty(String, String, Type) PSAliasProperty(String, String, Type)

Initializes a new instance of PSAliasProperty setting the name of the alias, the name of the member this alias refers to and the type to convert the referenced member's value.

Properties

ConversionType ConversionType ConversionType

Gets the the type to convert the referenced member's value. It might be null when no conversion is done.

IsGettable IsGettable IsGettable

Gets true if this property can be read

IsInstance IsInstance IsInstance Inherited from PSMemberInfo
IsSettable IsSettable IsSettable

Gets true if this property can be set

MemberType MemberType MemberType

Gets the member type

Name Name Name Inherited from PSMemberInfo
ReferencedMemberName ReferencedMemberName ReferencedMemberName

Gets the name of the member this alias refers to

TypeNameOfValue TypeNameOfValue TypeNameOfValue

Gets the type of the value for this member

Value Value Value

Gets and Sets the value of this member

Methods

Copy() Copy() Copy()

returns a new PSMemberInfo that is a copy of this PSMemberInfo

SetMemberName(String) SetMemberName(String) SetMemberName(String) Inherited from PSMemberInfo
ToString() ToString() ToString()

Returns the string representation of this property

Applies to