CallContext.LogicalSetData(String, Object) CallContext.LogicalSetData(String, Object) CallContext.LogicalSetData(String, Object) CallContext.LogicalSetData(String, Object) Method

Definition

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

public:
 static void LogicalSetData(System::String ^ name, System::Object ^ data);
[System.Security.SecurityCritical]
public static void LogicalSetData (string name, object data);
static member LogicalSetData : string * obj -> unit
Public Shared Sub LogicalSetData (name As String, data As Object)

Parameters

name
String String String String

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

data
Object Object Object Object

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

Exceptions

The immediate caller does not have infrastructure permission.

Security

SecurityPermission
For operating with infrastructure code. Demand value: LinkDemand; Permission value: Infrastructure

Applies to