System.Reflection.Emit.CustomAttributeBuilder Class

Helps build custom attributes.

See Also: CustomAttributeBuilder Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._CustomAttributeBuilder))]
[System.Runtime.InteropServices.ComVisible(true)]
public class CustomAttributeBuilder : System.Runtime.InteropServices._CustomAttributeBuilder

Remarks

Use the CustomAttributeBuilder object returned by the constructor to describe the custom attribute. Associate the CustomAttribute with a builder instance by calling the SetCustomAttribute method on that builder instance. For example, create a CustomAttributeBuilder to describe an instance of AssemblyCultureAttribute by supplying the constructor of System.Reflection.AssemblyCultureAttribute and its argument. Then call AssemblyBuilder.SetCustomAttribute(System.Reflection.ConstructorInfo, Byte[]) on an AssemblyBuilder to establish the association.

Requirements

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