EventBuilder.SetCustomAttribute Method
Silverlight
Sets a custom attribute using a custom attribute builder.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
[SecuritySafeCriticalAttribute] 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. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.