共用方式為


MetadataBuilder.AddFieldDefinition 方法

定義

新增欄位定義。

public:
 System::Reflection::Metadata::FieldDefinitionHandle AddFieldDefinition(System::Reflection::FieldAttributes attributes, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::BlobHandle signature);
public System.Reflection.Metadata.FieldDefinitionHandle AddFieldDefinition (System.Reflection.FieldAttributes attributes, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.BlobHandle signature);
member this.AddFieldDefinition : System.Reflection.FieldAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.FieldDefinitionHandle
Public Function AddFieldDefinition (attributes As FieldAttributes, name As StringHandle, signature As BlobHandle) As FieldDefinitionHandle

參數

attributes
FieldAttributes

欄位屬性。

name
StringHandle

欄位名稱。

signature
BlobHandle

欄位簽章。 使用 FieldSignature() 來建構 Blob。

傳回

已新增之欄位定義的控制代碼。

適用於