PSTypeName Constructor

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.

NameDescription
PSTypeName (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.
PSTypeName (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.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft