Partager via


PSAliasProperty Constructors

Definition

Overloads

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.

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.

public:
 PSAliasProperty(System::String ^ name, System::String ^ referencedMemberName);
public:
 PSAliasProperty(Platform::String ^ name, Platform::String ^ referencedMemberName);
 PSAliasProperty(std::wstring const & name, std::wstring const & referencedMemberName);
public PSAliasProperty (string name, string referencedMemberName);
new System.Management.Automation.PSAliasProperty : string * string -> System.Management.Automation.PSAliasProperty
Public Sub New (name As String, referencedMemberName As String)

Parameters

name
String

Name of the alias.

referencedMemberName
String

Name of the member this alias refers to.

Exceptions

For invalid arguments.

Applies 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.

public:
 PSAliasProperty(System::String ^ name, System::String ^ referencedMemberName, Type ^ conversionType);
public:
 PSAliasProperty(Platform::String ^ name, Platform::String ^ referencedMemberName, Platform::Type ^ conversionType);
public PSAliasProperty (string name, string referencedMemberName, Type conversionType);
new System.Management.Automation.PSAliasProperty : string * string * Type -> System.Management.Automation.PSAliasProperty
Public Sub New (name As String, referencedMemberName As String, conversionType As Type)

Parameters

name
String

Name of the alias.

referencedMemberName
String

Name of the member this alias refers to.

conversionType
Type

The type to convert the referenced member's value.

Exceptions

For invalid arguments.

Applies to