ILGenerator.UsingNamespace Method
.NET Framework 1.1
Specifies the namespace to be used in evaluating locals and watches for the current active lexical scope.
[Visual Basic] Public Sub UsingNamespace( _ ByVal usingNamespace As String _ ) [C#] public void UsingNamespace( string usingNamespace ); [C++] public: void UsingNamespace( String* usingNamespace ); [JScript] public function UsingNamespace( usingNamespace : String );
Parameters
- usingNamespace
- The namespace to be used in evaluating locals and watches for the current active lexical scope
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | Length of usingNamespace is zero. |
| ArgumentNullException | usingNamespace is a null reference (Nothing in Visual Basic). |
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace