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。

返回

已添加的字段定义的句柄。

适用于