System.Reflection.Emit.ConstructorBuilder.SetCustomAttribute Method

Set a custom attribute using a specified custom attribute blob.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public void SetCustomAttribute (System.Reflection.ConstructorInfo con, byte[] binaryAttribute)

Parameters

con
The constructor for the custom attribute.
binaryAttribute
A byte blob representing the attributes.

Remarks

See the metadata specification in the ECMA Partition II documentation for details on how to format binaryAttribute. The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

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