SetLocalSymInfo Method (String, Int32, Int32)
Collapse the table of content
Expand the table of content

LocalBuilder.SetLocalSymInfo Method (String, Int32, Int32)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft