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
- info
Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown
- context
Type: System.Runtime.Serialization.StreamingContext
The StreamingContext that contains contextual information about the source or destination
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.