LocalBuilder.SetLocalSymInfo Method (String)

Sets the name of this local variable.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public void SetLocalSymInfo(
	string name
)

Parameters

name
Type: System.String
The name 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.

Community Additions

ADD
Show: