EventBuilder.SetCustomAttribute Method (CustomAttributeBuilder)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets a custom attribute using a custom attribute builder.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public void SetCustomAttribute(
	CustomAttributeBuilder customBuilder
)

Parameters

customBuilder
Type: System.Reflection.Emit.CustomAttributeBuilder

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

Exception Condition
ArgumentNullException

con is null.

InvalidOperationException

CreateType has been called on the enclosing type.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: