MetadataBuilder.AddManifestResource 方法

定義

新增資訊清單資源。

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

參數

attributes
ManifestResourceAttributes

資訊清單資源屬性。

name
StringHandle

資訊清單資源的名稱。

implementation
EntityHandle

實作實體控制代碼,可能是下列其中一項:AssemblyFileHandleAssemblyReferenceHandlenull

offset
UInt32

指定此資源記錄在參考檔案檔案中,從其開始處的位元組位移。

傳回

已新增之資訊清單資源的控制代碼。

例外狀況

implementation 沒有預期的控制代碼種類。

適用於