This documentation is archived and is not being maintained.

IContextAccessor Interface

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)

public interface IContextAccessor

The IContextAccessor type exposes the following members.

  NameDescription
Public propertyCountGets the total number of values that are stored.
Top

  NameDescription
Public methodAddDoubleValueAdds an element by using the specified key and value.
Public methodAddIntValueAdds an element with the specified key and value.
Public methodAddObjectAdds an element with the specified key and value.
Public methodAddStringValueAdds an element with the specified key and value.
Public methodGetDoubleValueRetrieves the value that is associated with the specified key.
Public methodGetEnumeratorReturns an IDictionaryEnumerator that iterates through the IContextAccessor.
Public methodGetIntValueRetrieves the value that is associated with the specified key.
Public methodGetObjectRetrieves the object that is associated with the specified key.
Public methodGetStringValueRetrieves a string that is associated with the specified key.
Public methodRemoveValueRemoves the element with the specified key.
Top
Show: