Bagikan melalui


MetadataBuilder.AddManifestResource Metode

Definisi

Menambahkan sumber daya manifes.

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

Parameter

attributes
ManifestResourceAttributes

Atribut sumber daya manifes.

name
StringHandle

Nama sumber daya manifes.

implementation
EntityHandle

Handel entitas implementasi, yang dapat berupa salah satu hal berikut: AssemblyFileHandle, , AssemblyReferenceHandleatau null.

offset
UInt32

Menentukan offset byte dalam file yang direferensikan di mana rekaman sumber daya ini dimulai.

Mengembalikan

Handel ke sumber daya manifes yang ditambahkan.

Pengecualian

implementation tidak memiliki jenis handel yang diharapkan.

Berlaku untuk