NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

LocalBuilder.SetLocalSymInfo (String, Int32, Int32)

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
);

Parameters

name
The name of the local variable.
startOffset
The beginning offset of the lexical scope of the local variable.
endOffset
The ending offset of the lexical scope of the local variable.

Exceptions

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

See Also

LocalBuilder Class | LocalBuilder Members | System.Reflection.Emit Namespace | LocalBuilder.SetLocalSymInfo Overload List