ILGenerator.UsingNamespace Method
Silverlight
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)
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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.