System.Reflection.Emit.MethodBuilder.SetCustomAttribute Method

Sets a custom attribute using a custom attribute builder.

Syntax

public void SetCustomAttribute (CustomAttributeBuilder customBuilder)

Parameters

customBuilder
An instance of a helper class to describe the custom attribute.

Remarks

Requirements

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