asp.net.ph

Exception.GetObjectData Method

System Namespace   Exception Class


When overridden in a derived class, sets the SerializationInfo with information about the exception.

[ VB ]
<Serializable>
<ClassInterface ( ClassInterfaceType.AutoDual ) >
Overridable Public Sub GetObjectData ( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) Implements ISerializable.GetObjectData

[ C# ]
[ Serializable ]
[ ClassInterface ( ClassInterfaceType.AutoDual ) ]
public virtual void GetObjectData (
   SerializationInfo info,
   StreamingContext context
);

[ C++ ]
[ Serializable ]
[ ClassInterface ( ClassInterfaceType.AutoDual ) ]
public: virtual void GetObjectData (
   SerializationInfo* info,
   StreamingContext context
);

[ JScript ]
public Serializable
   ClassInterface ( ClassInterfaceType.AutoDual )
function GetObjectData (
   info : SerializationInfo,
   context : StreamingContext
);

Parameters

info
The SerializationInfo that holds the serialized object data about the exception being thrown.
context
The StreamingContext that contains contextual information about the source or destination.

Implements

ISerializable.GetObjectData

Exceptions


Exception Type Condition
ArgumentNullException Occurs when the info parameter is a null reference ( Nothing in Visual Basic ).

Remarks

GetObjectData sets a SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

See Also

Exception Members   SerializationInfo   StreamingContext Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph