Export (0) Print
Expand All

FileNotFoundException.GetObjectData Method

Sets the SerializationInfo object with the file 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 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

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

FileNotFoundException Class | FileNotFoundException Members | System.IO Namespace | Working with I/O | Reading Text from a File | Writing Text to a File

Show:
© 2014 Microsoft