VistaDB 5






The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
GetObjectData Method (VistaDBException)
When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Syntax
'Declaration
 
<System.Security.SecurityCriticalAttribute()>
Public Overrides Sub GetObjectData( _
   ByVal info As System.Runtime.Serialization.SerializationInfo, _
   ByVal context As System.Runtime.Serialization.StreamingContext _
) 
'Usage
 
Dim instance As VistaDBException
Dim info As System.Runtime.Serialization.SerializationInfo
Dim context As System.Runtime.Serialization.StreamingContext
 
instance.GetObjectData(info, context)
[System.Security.SecurityCritical()]
public override void GetObjectData( 
   System.Runtime.Serialization.SerializationInfo info,
   System.Runtime.Serialization.StreamingContext context
)
public procedure GetObjectData( 
    info: System.Runtime.Serialization.SerializationInfo;
    context: System.Runtime.Serialization.StreamingContext
); override; 
System.Security.SecurityCriticalAttribute()
public override function GetObjectData( 
   info : System.Runtime.Serialization.SerializationInfo,
   context : System.Runtime.Serialization.StreamingContext
);
[System.Security.SecurityCritical()]
public: void GetObjectData( 
   System.Runtime.Serialization.SerializationInfo* info,
   System.Runtime.Serialization.StreamingContext context
) override 
[System.Security.SecurityCritical()]
public:
void GetObjectData( 
   System.Runtime.Serialization.SerializationInfo^ info,
   System.Runtime.Serialization.StreamingContext context
) override 

Parameters

info
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.
Exceptions
ExceptionDescription
The info parameter is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also