Share via


GeneratorUserException.GetObjectData Method

Adds the severity and error type information to a SerializationInfo object, for use in remoting scenarios.

Namespace:  Microsoft.Data.Schema.DataGenerator
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'Usage
Dim instance As GeneratorUserException
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)
public override void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) override
public override function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)
abstract GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
override GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 

Parameters

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)

Remarks

Severity and ErrorType are added to info by calling AddValue. For more information, see Binary Serialization.

.NET Framework Security

See Also

Reference

GeneratorUserException Class

GeneratorUserException Members

Microsoft.Data.Schema.DataGenerator Namespace