Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

LocalBuilder.SetLocalSymInfo Method (String, Int32, Int32)

Sets the name and lexical scope of this local variable.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)
public void SetLocalSymInfo(
	string name,
	int startOffset,
	int endOffset
)

Parameters

name
Type: System.String
The name of the local variable.
startOffset
Type: System.Int32
The beginning offset of the lexical scope of the local variable.
endOffset
Type: System.Int32
The ending offset of the lexical scope of the local variable.
ExceptionCondition
InvalidOperationException

The containing type has been created with CreateType.

-or-

There is no symbolic writer defined for the containing module.

NotSupportedException

This local is defined in a dynamic method, rather than in a method of a dynamic type.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.