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.

PSTypeName Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PSTypeName class. The variants of this constructor can create an object that contains the name of the type or the type itself.

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

NameDescription
System_CAPS_pubmethodPSTypeName(ITypeName)

This constructor creates a type from a ITypeName. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodPSTypeName(String)

Initializes a new instance of the PSTypeName class that contains the name of the type. This constructor can be used when the type does not exist or when it is not loaded. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodPSTypeName(Type)

Initializes a new instance of the PSTypeName class that contains the .NET Framework type. This constructor is used when the type exists and is currently loaded. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodPSTypeName(TypeDefinitionAst)

This constructor is used when the type is defined in PowerShell.. Introduced in Windows PowerShell 3.0.

Return to top

Community Additions

Show: