Export (0) Print
Expand All

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)

public virtual void UsingNamespace(
	string usingNamespace
)

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 null.

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:
© 2015 Microsoft