Table of Contents

Interface IThreadContextItems

Namespace
CMS.Base
Assembly
CMS.Base.dll

Represents collection of items that can be used to organize and share data during a thread execution.

public interface IThreadContextItems
Extension Methods

Properties

this[string]

Gets or sets the value associated with the specified key.

object this[string key] { get; set; }

Parameters

key string

The key of the value to get or set.

Property Value

object

The value associated with the specified key. If the specified key is not found, a get operation returns null, and a set operation creates a new element with the specified key.

Methods

ContainsKey(string)

Determines whether the IThreadContextItems contains the specified key.

bool ContainsKey(string key)

Parameters

key string

The key to locate in the IThreadContextItems.

Returns

bool

true if the IThreadContextItems contains an element with the specified key; otherwise, false.

Remove(string)

Removes the value with the specified key from the IThreadContextItems.

bool Remove(string key)

Parameters

key string

The key of the element to remove.

Returns

bool

true if the element is successfully found and removed; otherwise, false. This method returns false if key is not found in the IThreadContextItems.