MetadataBuilder.AddManifestResource Methode

Definitie

Hiermee voegt u een manifestresource toe.

public:
 System::Reflection::Metadata::ManifestResourceHandle AddManifestResource(System::Reflection::ManifestResourceAttributes attributes, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::EntityHandle implementation, System::UInt32 offset);
public System.Reflection.Metadata.ManifestResourceHandle AddManifestResource(System.Reflection.ManifestResourceAttributes attributes, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.EntityHandle implementation, uint offset);
member this.AddManifestResource : System.Reflection.ManifestResourceAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.EntityHandle * uint32 -> System.Reflection.Metadata.ManifestResourceHandle
Public Function AddManifestResource (attributes As ManifestResourceAttributes, name As StringHandle, implementation As EntityHandle, offset As UInteger) As ManifestResourceHandle

Parameters

attributes
ManifestResourceAttributes

De manifestresourcekenmerken.

name
StringHandle

De naam van de manifestresource.

implementation
EntityHandle

De implementatieentiteitshandler, die een van de volgende opties kan zijn: AssemblyFileHandle, AssemblyReferenceHandleof null.

offset
UInt32

Hiermee geeft u de byte-offset in het bestand waarnaar wordt verwezen, waarop deze resourcerecord begint.

Retouren

Een ingang voor de toegevoegde manifestresource.

Uitzonderingen

implementation heeft niet de verwachte soort ingang.

Van toepassing op