Share via


TypeName Class

Definition

A simple type that is not an array or does not have generic arguments.

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

Constructors

TypeName(IScriptExtent, String, String)

Construct a typename with an assembly specification.

TypeName(IScriptExtent, String)

Construct a simple typename.

Properties

AssemblyName

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

Extent

The extent of the typename.

FullName

Returns the full name of the type.

IsArray

Always returns false, array typenames are instances of ArrayTypeName.

IsGeneric

Always returns false, generic typenames are instances of GenericTypeName.

Name

Returns the name of the type, w/o any assembly name if one was specified.

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()

Get the Type from a typename.

ToString()

Simply return the FullName of the type.

Applies to