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.

AliasAttribute Constructor (String[])

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initiailizes a new instance of the AliasAttribute class.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public AliasAttribute(
	params string[] aliasNames
)

Parameters

aliasNames
Type: System.String[]

The name for this alias.

Exception Condition
ArgumentException

for invalid arguments

The Alias attribute is used to provide either a shortcut or multiple ways to specify a cmdlet parameter. For more information about the syntax and parameters of the Alias attribute, see Alias Attribute Declaration.

Return to top

Community Additions

Show: