PSAliasProperty Class

Definition

Serves as an alias to another member.

public ref class PSAliasProperty : System::Management::Automation::PSPropertyInfo
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)

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)

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

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

IsGettable

Gets true if this property can be read.

IsInstance

True if this member has been added to the instance as opposed to coming from the adapter or from type data.

(Inherited from PSMemberInfo)
IsSettable

Gets true if this property can be set.

MemberType

Gets the member type.

Name

Gets the member name.

(Inherited from PSMemberInfo)
ReferencedMemberName

Gets the name of the member this alias refers to.

TypeNameOfValue

Gets the type of the value for this member.

Value

Gets and Sets the value of this member.

Methods

Copy()

Returns a new PSMemberInfo that is a copy of this PSMemberInfo.

SetMemberName(String)

Allows a derived class to set the member name...

(Inherited from PSMemberInfo)
ToString()

Returns the string representation of this property.

Applies to