LogicalCallContext.GetObjectData Method (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.

Populates a specified SerializationInfo with the data needed to serialize the current LogicalCallContext.

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

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

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo

The SerializationInfo to populate with data.

context
Type: System.Runtime.Serialization.StreamingContext

The contextual information about the source or destination of the serialization.

Exception Condition
ArgumentNullException

info is null.

SecurityException

The immediate caller does not have SerializationFormatter permission.

The current method fills the provided SerializationInfo with all the data needed to recreate the LogicalCallContext.

The current method is an implementation of GetObjectData.

SecurityPermission

for providing serialization services. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.SerializationFormatter

.NET Framework
Available since 1.1
Return to top
Show: