MetadataBuilder.AddManifestResource(ManifestResourceAttributes, StringHandle, EntityHandle, UInt32) Método

Definición

Agrega un recurso de manifiesto.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

Parámetros

attributes
ManifestResourceAttributes

Los atributos del recurso de manifiesto.The manifest resource attributes.

name
StringHandle

El nombre del recurso de manifiesto.The name of the manifest resource.

implementation
EntityHandle

El identificador de la entidad de implementación, que puede ser uno de los siguientes: AssemblyFileHandle, AssemblyReferenceHandle o null.The implementation entity handle, which can be one of the following: AssemblyFileHandle, AssemblyReferenceHandle, or null.

offset
UInt32

Especifica el desplazamiento de bytes en el archivo al que se hace referencia en el que comienza este registro de recursos.Specifies the byte offset within the referenced file at which this resource record begins.

Devoluciones

ManifestResourceHandle

Un identificador del recurso de manifiesto agregado.A handle to the added manifest resource.

Excepciones

implementation no tiene el tipo de identificador esperado.implementation doesn't have the expected handle kind.

Se aplica a