Context.SetData(LocalDataStoreSlot, Object) Context.SetData(LocalDataStoreSlot, Object) Context.SetData(LocalDataStoreSlot, Object) Context.SetData(LocalDataStoreSlot, Object) Method

定义

设置当前上下文中的指定槽中的数据。Sets the data in the specified slot on the current context.

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

slot
LocalDataStoreSlot LocalDataStoreSlot LocalDataStoreSlot LocalDataStoreSlot

数据要添加到的数据槽。The data slot where the data is to be added.

data
Object Object Object Object

要添加的数据。The data that is to be added.

适用于