IContextAccessor Interface

Definition

Interface to use to build a helper class to store and retrieve values from contexts.

public interface class IContextAccessor
public interface IContextAccessor
type IContextAccessor = interface
Public Interface IContextAccessor

Properties

Count

Gets the total number of values that are stored.

Methods

AddDoubleValue(String, Double)

Adds an element by using the specified key and value.

AddIntValue(String, Int32)

Adds an element with the specified key and value.

AddObject(String, Object)

Adds an element with the specified key and value.

AddStringValue(String, String)

Adds an element with the specified key and value.

GetDoubleValue(String)

Retrieves the value that is associated with the specified key.

GetEnumerator()

Returns an IDictionaryEnumerator that iterates through the IContextAccessor.

GetIntValue(String)

Retrieves the value that is associated with the specified key.

GetObject(String)

Retrieves the object that is associated with the specified key.

GetStringValue(String)

Retrieves a string that is associated with the specified key.

RemoveValue(String)

Removes the element with the specified key.

Applies to