แก้ไข

แชร์ผ่าน


MetadataBuilder.AddManifestResource Method

Definition

Adds a manifest resource.

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

The manifest resource attributes.

name
StringHandle

The name of the manifest resource.

implementation
EntityHandle

The implementation entity handle, which can be one of the following: AssemblyFileHandle, AssemblyReferenceHandle, or null.

offset
UInt32

Specifies the byte offset within the referenced file at which this resource record begins.

Returns

A handle to the added manifest resource.

Exceptions

implementation doesn't have the expected handle kind.

Applies to