Interface to use to build a helper class to store and retrieve values from contexts.
Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Interface IContextAccessor
public interface IContextAccessor
public interface class IContextAccessor
type IContextAccessor =  interface end
public interface IContextAccessor
The IContextAccessor type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | Count | Gets the total number of values that are stored. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddDoubleValue | Adds an element by using the specified key and value. | 
| .gif) | AddIntValue | Adds an element with the specified key and value. | 
| .gif) | AddObject | Adds an element with the specified key and value. | 
| .gif) | AddStringValue | Adds an element with the specified key and value. | 
| .gif) | GetDoubleValue | Retrieves the value that is associated with the specified key. | 
| .gif) | GetEnumerator | Returns an IDictionaryEnumerator that iterates through the IContextAccessor. | 
| .gif) | GetIntValue | Retrieves the value that is associated with the specified key. | 
| .gif) | GetObject | Retrieves the object that is associated with the specified key. | 
| .gif) | GetStringValue | Retrieves a string that is associated with the specified key. | 
| .gif) | RemoveValue | Removes the element with the specified key. | 
Top