PSTypeName Class

Definition

Represents Type, but can be used where a real type might not be available, in which case the name of the type can be used.

public ref class PSTypeName
public class PSTypeName
type PSTypeName = class
Public Class PSTypeName
Inheritance
PSTypeName

Constructors

PSTypeName(ITypeName)

This constructor creates a type from a ITypeName.

PSTypeName(String)

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

PSTypeName(String, Type)

This constructor is used when the creating a PSObject with a custom typename.

PSTypeName(Type)

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

PSTypeName(TypeDefinitionAst)

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

Properties

Name

Return the name of the type.

Type

Return the type with metadata, or null if the type is not loaded.

TypeDefinitionAst

When a type is defined by PowerShell, the ast for that type.

Methods

ToString()

Returns a String that represents the current PSTypeName.

Applies to