RemotingServices.GetObjectData Method (Object, SerializationInfo, StreamingContext)

 

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

Namespace:   System.Runtime.Remoting
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public static void GetObjectData(
	object obj,
	SerializationInfo info,
	StreamingContext context
)

Parameters

obj
Type: System.Object

The object to serialize.

info
Type: System.Runtime.Serialization.SerializationInfo

The SerializationInfo into which the object is serialized.

context
Type: System.Runtime.Serialization.StreamingContext

The source and destination of the serialization.

Exception Condition
ArgumentNullException

The obj or info parameter is null.

SecurityException

The immediate caller does not have infrastructure permission.

SecurityPermission

for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: