語言

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

變數的名稱。

傳回

一個附加於本地變數的 handle。

例外狀況

適用於