PSTypeName PSTypeName PSTypeName Constructors

Definition

Overloads

PSTypeName(ITypeName) PSTypeName(ITypeName) PSTypeName(ITypeName)

This constructor creates a type from a ITypeName.

PSTypeName(TypeDefinitionAst) PSTypeName(TypeDefinitionAst)

This constructor is used when the type is defined in PowerShell.

PSTypeName(String) PSTypeName(String) PSTypeName(String)

This constructor is used when the type may not exist, or is not loaded.

PSTypeName(Type) PSTypeName(Type)

This constructor is used when the type exists and is currently loaded.

PSTypeName(ITypeName) PSTypeName(ITypeName) PSTypeName(ITypeName)

This constructor creates a type from a ITypeName.

public PSTypeName (System.Management.Automation.Language.ITypeName typeName);
new System.Management.Automation.PSTypeName : System.Management.Automation.Language.ITypeName -> System.Management.Automation.PSTypeName
Public Sub New (typeName As ITypeName)
Parameters

PSTypeName(TypeDefinitionAst) PSTypeName(TypeDefinitionAst)

This constructor is used when the type is defined in PowerShell.

public PSTypeName (System.Management.Automation.Language.TypeDefinitionAst typeDefinitionAst);
new System.Management.Automation.PSTypeName : System.Management.Automation.Language.TypeDefinitionAst -> System.Management.Automation.PSTypeName
Parameters
typeDefinitionAst
TypeDefinitionAst TypeDefinitionAst TypeDefinitionAst

The type definition from the ast.

PSTypeName(String) PSTypeName(String) PSTypeName(String)

This constructor is used when the type may not exist, or is not loaded.

public PSTypeName (string name);
new System.Management.Automation.PSTypeName : string -> System.Management.Automation.PSTypeName
Public Sub New (name As String)
Parameters
name
String String String

The name of the type

PSTypeName(Type) PSTypeName(Type)

This constructor is used when the type exists and is currently loaded.

public PSTypeName (Type type);
new System.Management.Automation.PSTypeName : Type -> System.Management.Automation.PSTypeName
Parameters
type
Type Type Type

The type

Applies to