Sets the name and lexical scope of this local variable.
[Visual Basic] Overloads Public Sub SetLocalSymInfo( _ ByVal name As String, _ ByVal startOffset As Integer, _ ByVal endOffset As Integer _ ) [C#] public void SetLocalSymInfo( string name, int startOffset, int endOffset ); [C++] public: void SetLocalSymInfo( String* name, int startOffset, int endOffset ); [JScript] public function SetLocalSymInfo( name : String, startOffset : int, endOffset : int );
Exception Type | Condition |
---|---|
InvalidOperationException | if the containing type has been created with CreateType or if there is no symbolic writer defined for the containing module |
LocalBuilder Class | LocalBuilder Members | System.Reflection.Emit Namespace | LocalBuilder.SetLocalSymInfo Overload List