Set a custom attribute using a specified custom attribute blob.
[Visual Basic] Overloads Public Sub SetCustomAttribute( _ ByVal con As ConstructorInfo, _ ByVal binaryAttribute() As Byte _ ) [C#] public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute ); [C++] public: void SetCustomAttribute( ConstructorInfo* con, unsigned char* binaryAttribute[] ); [JScript] public function SetCustomAttribute( con : ConstructorInfo, binaryAttribute : Byte[] );
Exception Type | Condition |
---|---|
ArgumentNullException | if con or binaryAttribute is a null reference (in Visual Basic Nothing) |
See the for details on how to format binaryAttribute.
TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace | TypeBuilder.SetCustomAttribute Overload List