NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ParameterBuilder.SetCustomAttribute (ConstructorInfo, Byte[])

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[]
);

Parameters

con
The constructor for the custom attribute.
binaryAttribute
A byte blob representing the attributes.

Exceptions

Exception Type Condition
ArgumentNullException if con or binaryAttribute is a null reference (in Visual Basic Nothing)

Remarks

See the for details on how to format binaryAttribute.

See Also

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