다음을 통해 공유


CompatibilityViolationException.GetObjectData Method

Definition

Sets the SerializationInfo object with the compatibility-level violation information.

[System.Security.SecurityCritical]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Security.SecurityCritical>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Implements

Attributes

Exceptions

The info object is a null reference (Nothing in Visual Basic).

Applies to