Share via


TypeName Constructors

Definition

Overloads

TypeName(IScriptExtent, String)

Construct a simple typename.

TypeName(IScriptExtent, String, String)

Construct a typename with an assembly specification.

TypeName(IScriptExtent, String)

Construct a simple typename.

public:
 TypeName(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ name);
public TypeName (System.Management.Automation.Language.IScriptExtent extent, string name);
new System.Management.Automation.Language.TypeName : System.Management.Automation.Language.IScriptExtent * string -> System.Management.Automation.Language.TypeName
Public Sub New (extent As IScriptExtent, name As String)

Parameters

extent
IScriptExtent

The extent of the typename.

name
String

The name of the type.

Exceptions

If name is null or the empty string.

If name contains characters that are only allowed in a generic or array typename.

Applies to

TypeName(IScriptExtent, String, String)

Construct a typename with an assembly specification.

public:
 TypeName(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ name, System::String ^ assembly);
public TypeName (System.Management.Automation.Language.IScriptExtent extent, string name, string assembly);
new System.Management.Automation.Language.TypeName : System.Management.Automation.Language.IScriptExtent * string * string -> System.Management.Automation.Language.TypeName
Public Sub New (extent As IScriptExtent, name As String, assembly As String)

Parameters

extent
IScriptExtent

The extent of the typename.

name
String

The name of the type.

assembly
String

The assembly the type belongs to.

Exceptions

If extent is null or if name or assembly is null or the empty string.

If name contains characters that are only allowed in a generic or array typename.

Applies to