Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
---|---|---|
![]() |
Count | Gets the total number of values that are stored. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
AddDoubleValue | Adds an element by using the specified key and value. |
![]() |
AddIntValue | Adds an element with the specified key and value. |
![]() |
AddObject | Adds an element with the specified key and value. |
![]() |
AddStringValue | Adds an element with the specified key and value. |
![]() |
GetDoubleValue | Retrieves the value that is associated with the specified key. |
![]() |
GetEnumerator | Returns an IDictionaryEnumerator that iterates through the IContextAccessor. |
![]() |
GetIntValue | Retrieves the value that is associated with the specified key. |
![]() |
GetObject | Retrieves the object that is associated with the specified key. |
![]() |
GetStringValue | Retrieves a string that is associated with the specified key. |
![]() |
RemoveValue | Removes the element with the specified key. |
Top