MetadataBuilder.AddLocalVariable 方法

定義

新增本機變數偵錯資訊。

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

參數

attributes
LocalVariableAttributes

本機變數屬性。

index
Int32

本機簽章中本機變數的以零起始索引。

name
StringHandle

變數的名稱。

傳回

已新增之本機變數的控制代碼。

例外狀況

適用於