Bagikan melalui


MetadataBuilder.AddLocalVariable Metode

Definisi

Menambahkan informasi debug variabel lokal.

public:
 System::Reflection::Metadata::LocalVariableHandle AddLocalVariable(System::Reflection::Metadata::LocalVariableAttributes attributes, int index, System::Reflection::Metadata::StringHandle name);
public System.Reflection.Metadata.LocalVariableHandle AddLocalVariable (System.Reflection.Metadata.LocalVariableAttributes attributes, int index, System.Reflection.Metadata.StringHandle name);
member this.AddLocalVariable : System.Reflection.Metadata.LocalVariableAttributes * int * System.Reflection.Metadata.StringHandle -> System.Reflection.Metadata.LocalVariableHandle
Public Function AddLocalVariable (attributes As LocalVariableAttributes, index As Integer, name As StringHandle) As LocalVariableHandle

Parameter

attributes
LocalVariableAttributes

Atribut variabel lokal.

index
Int32

Indeks nol dasar dari variabel lokal dalam tanda tangan lokal.

name
StringHandle

Nama variabel.

Mengembalikan

Handel ke variabel lokal yang ditambahkan.

Pengecualian

Berlaku untuk