RemotingServices.GetObjectData Method (Object, SerializationInfo, StreamingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: