Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConstructorBuilder.SetSymCustomAttribute Method

Sets this constructor's custom attribute associated with symbolic information.

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

member SetSymCustomAttribute : 
        name:string * 
        data:byte[] -> unit

Parameters

name
Type: System.String

The name of the custom attribute.

data
Type: System.Byte[]

The value of the custom attribute.

ExceptionCondition
InvalidOperationException

The containing type has been created using CreateType.

-or-

The module does not have a symbol writer defined. For example, the module is not a debug module.

The following code sample illustrates the use of SetSymCustomAttributes.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft