Export (0) Print
Expand All

ModuleBuilder.GetTypeToken Method (String)

Returns the token used to identify the type with the specified name.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public TypeToken GetTypeToken(
	string name
)

Parameters

name
Type: System.String
The name of the class, including the namespace.

Return Value

Type: System.Reflection.Emit.TypeToken
The token used to identify the type with the specified name within this module.

ExceptionCondition
ArgumentException

name is the empty string ("").

-or-

name represents a ByRef type.

ArgumentNullException

name is null.

-or-

The type specified by name could not be found.

InvalidOperationException

This is a non-transient module that references a transient module.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft