Redigera

Dela via


RemotingServices.GetObjectData Method

Definition

Serializes the specified marshal by reference object into the provided SerializationInfo.

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

Parameters

obj
Object

The object to serialize.

info
SerializationInfo

The SerializationInfo into which the object is serialized.

context
StreamingContext

The source and destination of the serialization.

Attributes

Exceptions

The obj or info parameter is null.

The immediate caller does not have infrastructure permission.

Applies to

See also