Windows Dev Center

ParameterBuilder.SetCustomAttribute Method (CustomAttributeBuilder)

Set 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 define the custom attribute.

ExceptionCondition
ArgumentNullException

con is null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft