PropertyBuilder::SetCustomAttribute Method (CustomAttributeBuilder^)
.NET Framework (current version)
Set a custom attribute using a custom attribute builder.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- customBuilder
-
Type:
System.Reflection.Emit::CustomAttributeBuilder^
An instance of a helper class to define the custom attribute.
| Exception | Condition |
|---|---|
| ArgumentNullException | customBuilder is null. |
| InvalidOperationException | if CreateType has been called on the enclosing type. |
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Available since 1.1
Silverlight
Available since 2.0
Show: