다음을 통해 공유


GenericTypeName Class

Definition

Represent a closed generic type including its arguments.

public ref class GenericTypeName sealed : System::Management::Automation::Language::ITypeName
public sealed class GenericTypeName : System.Management.Automation.Language.ITypeName
type GenericTypeName = class
    interface ITypeName
Public NotInheritable Class GenericTypeName
Implements ITypeName
Inheritance
GenericTypeName
Implements

Constructors

GenericTypeName(IScriptExtent, ITypeName, IEnumerable<ITypeName>)

Construct a generic type name.

Properties

AssemblyName

The name of the assembly, if specified, otherwise null.

Extent

The extent of the typename.

FullName

Return the typename, using PowerShell syntax for generic type arguments.

GenericArguments

The generic arguments for this typename.

IsArray

Always returns false because this class does not represent arrays.

IsGeneric

Always returns true because this class represents generics.

Name

The name of the type, including any namespace, but not including the assembly name, using PowerShell syntax for generic type arguments.

TypeName

The typename that specifies the generic class.

Methods

Equals(Object)
GetHashCode()
GetReflectionAttributeType()

Returns the Type this type represents, assuming the type is an attribute. The suffix "Attribute" may be appended, if necessary, to resolve the type.

GetReflectionType()

Returns the Type that this typename represents, if such a type exists, null otherwise.

ToString()

Simply return the FullName of the type.

Applies to