Export (0) Print
Expand All

ArgumentException.GetObjectData Method

Sets the SerializationInfo object with the parameter name and additional exception information.

[Visual Basic]
Overrides Public Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) Implements ISerializable.GetObjectData
[C#]
public override void GetObjectData(
 SerializationInfo info,
 StreamingContext context
);
[C++]
public: void GetObjectData(
 SerializationInfo* info,
 StreamingContext context
);
[JScript]
public override function GetObjectData(
   info : SerializationInfo,
 context : StreamingContext
);

Parameters

info
The object that holds the serialized object data.
context
The contextual information about the source or destination.

Implements

ISerializable.GetObjectData

Exceptions

Exception Type Condition
ArgumentNullException The info object 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 object is reconstituted from the SerializationInfo transmitted over the stream.

For more information, see SerializationInfo.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ArgumentException Class | ArgumentException Members | System Namespace | SerializationInfo | XML and SOAP Serialization

Show:
© 2014 Microsoft