Partager via


GenericTypeName Constructor

Definition

Construct a generic type name.

public:
 GenericTypeName(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ITypeName ^ genericTypeName, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::ITypeName ^> ^ genericArguments);
public GenericTypeName (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ITypeName genericTypeName, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.ITypeName> genericArguments);
new System.Management.Automation.Language.GenericTypeName : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ITypeName * seq<System.Management.Automation.Language.ITypeName> -> System.Management.Automation.Language.GenericTypeName
Public Sub New (extent As IScriptExtent, genericTypeName As ITypeName, genericArguments As IEnumerable(Of ITypeName))

Parameters

extent
IScriptExtent

The extent of the generic typename.

genericTypeName
ITypeName

The name of the generic class. The name does not need to include the backtick and number of expected arguments, (e.g. System.Collections.Generic.Dictionary`2, but the backtick and number be included.

genericArguments
IEnumerable<ITypeName>

The list of typenames that represent the arguments to the generic type named by genericTypeName.

Exceptions

If genericTypeName is null.

If genericArguments is null or if genericArguments is an empty collection.

Applies to