MetadataBuilder.AddCustomAttribute Metod

Definition

Lägger till ett anpassat attribut.

public:
 System::Reflection::Metadata::CustomAttributeHandle AddCustomAttribute(System::Reflection::Metadata::EntityHandle parent, System::Reflection::Metadata::EntityHandle constructor, System::Reflection::Metadata::BlobHandle value);
public System.Reflection.Metadata.CustomAttributeHandle AddCustomAttribute(System.Reflection.Metadata.EntityHandle parent, System.Reflection.Metadata.EntityHandle constructor, System.Reflection.Metadata.BlobHandle value);
member this.AddCustomAttribute : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.CustomAttributeHandle
Public Function AddCustomAttribute (parent As EntityHandle, constructor As EntityHandle, value As BlobHandle) As CustomAttributeHandle

Parametrar

constructor
EntityHandle

En konstruktor för anpassade attribut: a MethodDefinitionHandle eller MemberReferenceHandle.

value
BlobHandle

En anpassad attributvärdeblob.

Returer

Ett handtag till det tillagda anpassade attributet.

Undantag

parent har inte den förväntade referenstyp.

Kommentarer

Poster kan läggas till i valfri ordning. Tabellen sorteras automatiskt när den serialiseras.

Gäller för