This documentation is archived and is not being maintained.

MethodBuilder.SetCustomAttribute Method (CustomAttributeBuilder)

.NET Framework 1.1

Sets a custom attribute using a custom attribute builder.

[Visual Basic]
Overloads Public Sub SetCustomAttribute( _
   ByVal customBuilder As CustomAttributeBuilder _
)
[C#]
public void SetCustomAttribute(
 CustomAttributeBuilder customBuilder
);
[C++]
public: void SetCustomAttribute(
 CustomAttributeBuilder* customBuilder
);
[JScript]
public function SetCustomAttribute(
   customBuilder : CustomAttributeBuilder
);

Parameters

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

Exceptions

Exception Type Condition
ArgumentNullException customBuilder is a null reference (Nothing in Visual Basic).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

MethodBuilder Class | MethodBuilder Members | System.Reflection.Emit Namespace | MethodBuilder.SetCustomAttribute Overload List

Show: