System.Reflection.Emit.AssemblyBuilder.DefineUnmanagedResource Method

Defines an unmanaged resource for this assembly as an opaque blob of bytes.

Syntax

public void DefineUnmanagedResource (byte[] resource)

Parameters

resource
The opaque blob of bytes representing the unmanaged resource.

Remarks

An assembly can be associated with only one unmanaged resource. This means that calling AssemblyBuilder.DefineVersionInfoResource(string, string, string, string, string) or AssemblyBuilder.DefineUnmanagedResource(Byte[]) after either one of the methods was called previously will throw the System.ArgumentException being throw. Multiple unmanaged resources need to be merged with a tool such as the Microsoft ResMerge utility (not supplied with the common language runtime).

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0