Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.