Freigeben über


LocalBuilder.SetLocalSymInfo Method (String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Sets the name of this local variable.

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

Syntax

'Declaration
Public Sub SetLocalSymInfo ( _
    name As String _
)
public void SetLocalSymInfo(
    string name
)

Parameters

Exceptions

Exception Condition
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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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