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 Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Declares an alternative name for a parameter.

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


[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field, 
	AllowMultiple = false)]
public sealed class AliasAttribute : ParsingBaseAttribute

NameDescription
System_CAPS_pubmethodAliasAttribute(String[])

Initiailizes a new instance of the AliasAttribute class.

NameDescription
System_CAPS_pubpropertyAliasNames

Gets the alias names passed to the constructor.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

For more information about the syntax and parameters of the Alias attribute, see Alias Attribute Declaration.

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

Community Additions

Show: