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!

ModuleBuilder.SetSymCustomAttribute

Sets the custom attribute that is stored with the symbolic information.

[Visual Basic]
Public Sub SetSymCustomAttribute( _
   ByVal name As String, _
   ByVal data() As Byte _
)
[C#]
public void SetSymCustomAttribute(
   string name,
   byte[] data
);
[C++]
public: void SetSymCustomAttribute(
   String* name,
   unsigned char* data[]
);
[JScript]
public function SetSymCustomAttribute(
   name : String,
   data : Byte[]
);

Parameters

name
The name of the custom attribute
data
[To be supplied.]

Exceptions

Exception Type Condition
ArgumentNullException if url is a null reference (in Visual Basic Nothing)
InvalidOperationException if this method is called on a dynamic module that is not a debug module.

Remarks

The custom attribute that is set by this method is associated only with the symbolic information written by the symbol writer and is different from the custom attribute set using the SetCustomAttribute method.

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace