CallContext.LogicalSetData(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
public static void LogicalSetData (string name, object data);
[System.Security.SecurityCritical]
public static void LogicalSetData (string name, object data);
static member LogicalSetData : string * obj -> unit
[<System.Security.SecurityCritical>]
static member LogicalSetData : string * obj -> unit
Public Shared Sub LogicalSetData (name As String, data As Object)
Parameters
- name
- String
The name with which to associate the new item in the logical call context.
- data
- Object
The object to store in the logical call context, this object must be serializable.
- Attributes
Exceptions
The immediate caller does not have infrastructure permission.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.