TypeBuilder.SetCustomAttribute Method (ConstructorInfo, Byte[])

Do not use this member in your application. If you do, your code will throw a MethodAccessException. This member is security-critical, which restricts it to internal use by the .NET Framework for Silverlight class library.
[SECURITY CRITICAL]

Sets a custom attribute using a specified custom attribute blob.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
[ComVisibleAttribute(true)]
public void SetCustomAttribute(
	ConstructorInfo con,
	byte[] binaryAttribute
)

Parameters

con
Type: System.Reflection.ConstructorInfo
The constructor for the custom attribute.
binaryAttribute
Type: System.Byte[]
A byte binary large object (BLOB) representing the attributes.

Silverlight

Supported in: 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show: