System.Reflection.Emit.PropertyBuilder.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 Partition II documentation is available online on MSDN (tp://go.microsoft.com/fwlink/?linkid=65555 Web page) and on the ECMA Web site (tp://go.microsoft.com/fwlink/?linkid=65552 document).

Requirements

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