Share via


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

実装エンティティ ハンドル。次のいずれかとなります: AssemblyFileHandleAssemblyReferenceHandle、または null

offset
UInt32

このリソース レコードが始まる参照先ファイル内のバイト オフセットを指定します。

戻り値

追加されたマニフェスト リソースのハンドル。

例外

implementation が、必要なハンドルの型ではありません。

適用対象