SetContextValue Method (Int32, Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Stores an object in the SmiContext for later retrieval (similar to thread-local storage entry). The assembly that contains this class has a friend relationship with SQLAccess.dll.  It is intended for use by SQL Server.  For other databases, use the hosting mechanism provided by that database.

Namespace: Microsoft.SqlServer.Server

Assembly: System.Data (in System.Data.dll)

MustOverride Sub SetContextValue(ByVal key As Integer, ByVal value As Object)
internal abstract void SetContextValue (int key, object value);

Parameters

Parameter

Description

key

A valid ContextKey value.

value

The value to set for the specified key.

Version Information

.NET Framework

Supported in: 2.0