The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ILGenerator::UsingNamespace Method (String^)
.NET Framework (current version)
Specifies the namespace to be used in evaluating locals and watches for the current active lexical scope.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- usingNamespace
-
Type:
System::String^
The namespace to be used in evaluating locals and watches for the current active lexical scope
| Exception | Condition |
|---|---|
| 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.
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: