ILGenerator.UsingNamespace Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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 Nothing. |
| NotSupportedException | This ILGenerator belongs to a DynamicMethod. |
If the current ILGenerator is associated with a DynamicMethod object, this method is not supported.
Show: