FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

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

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Runtime.InteropServices.ComVisible(false)]
[System.Security.SecurityCritical]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Implements

Attributes

Remarks

For a list of common I/O tasks, see Common I/O Tasks.

Security

FileIOPermission
for permission to access information about the path described by the current instance. Associated enumeration: FileIOPermissionAccess Security action: Demand

SecurityPermission
for permission to link to this class. Associated enumeration: SerializationFormatter Security action: Link Demand

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to

See also