Поделиться через


ModuleBuilder.GetTypeToken Method (String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Function GetTypeToken ( _
    name As String _
) As TypeToken
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.

Exceptions

Exception Condition
ArgumentException

name is the empty string ("").

-or-

name represents a ByRef type.

ArgumentNullException

name is nulla null reference (Nothing in Visual Basic).

-or-

The type specified by name could not be found.

InvalidOperationException

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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