CallContext::LogicalSetData Method (String^, Object^)
.NET Framework (current version)
Stores a given object in the logical call context and associates it with the specified name.
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
Available since 2.0
Show: