Windows desktop applications
Collapse the table of content
Expand the table of content
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 Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Serves as a container for a type, typically a .NET Framework type. This class is introduced in Windows PowerShell 2.0.

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

System.Object
  System.Management.Automation.PSTypeName

public class PSTypeName

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.

NameDescription
System_CAPS_pubpropertyName

Gets the name of the type that the PSTypeName object contains. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyType

Gets the .NET Framework type that the PSTypeName object contains. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyTypeDefinitionAst

When a type is defined by PowerShell, the ast for that type.. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Generates a string representation of the PSTypeName object.(Overrides Object.ToString().)

The PSTypeName object is used as a container for the type specified by the OutputTypeAttribute attribute. This attribute is used to specify what type is returned by a cmdlet. For more information about the OutputTypeAttribute attribute, see OutputType Attribute Declaration. It can be used as a container for a .NET Framework type or in cases where the real .NET Framework type is not available.

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
Show:
© 2016 Microsoft