Bewerken

Share via


_Assembly.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Provides COM objects with version-independent access to the GetObjectData(SerializationInfo, StreamingContext) method.

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

Parameters

info
SerializationInfo

The object to be populated with serialization information.

context
StreamingContext

The destination context of the serialization.

Attributes

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetObjectData method gets serialization information with all of the data needed to reinstantiate this assembly.

Applies to

See also