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[] );
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. |
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.
NGWS Runtime Security:
ReflectionPermission | SecurityAction.Demand, ReflectionEmit |
ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace