CallContext::LogicalSetData Method (String^, Object^)

 

Stores a given object in the logical call context and associates it with the specified name.

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

public:
[SecurityCriticalAttribute]
static void LogicalSetData(
	String^ name,
	Object^ data
)

Parameters

name
Type: System::String^

The name with which to associate the new item in the logical call context.

data
Type: System::Object^

The object to store in the logical call context, this object must be serializable.

Exception Condition
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 2.0
Return to top
Show: