ILGenerator.UsingNamespace Method

Specifies the namespace to be used in evaluating locals and watches for the current active lexical scope.

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

'Declaration
Public Overridable Sub UsingNamespace ( _
	usingNamespace As String _
)

Parameters

usingNamespace
Type: System.String
The namespace to be used in evaluating locals and watches for the current active lexical scope

ExceptionCondition
ArgumentException

Length of usingNamespace is zero.

ArgumentNullException

usingNamespace is Nothing.

NotSupportedException

This ILGenerator belongs to a DynamicMethod.

If the current ILGenerator is associated with a DynamicMethod object, this method is not supported.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

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

Community Additions

ADD
Show: