MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

NameDescription
System_CAPS_pubpropertyCount

Gets the total number of values that are stored.

NameDescription
System_CAPS_pubmethodAddDoubleValue(String, Double)

Adds an element by using the specified key and value.

System_CAPS_pubmethodAddIntValue(String, Int32)

Adds an element with the specified key and value.

System_CAPS_pubmethodAddObject(String, Object)

Adds an element with the specified key and value.

System_CAPS_pubmethodAddStringValue(String, String)

Adds an element with the specified key and value.

System_CAPS_pubmethodGetDoubleValue(String)

Retrieves the value that is associated with the specified key.

System_CAPS_pubmethodGetEnumerator()

Returns an IDictionaryEnumerator that iterates through the IContextAccessor.

System_CAPS_pubmethodGetIntValue(String)

Retrieves the value that is associated with the specified key.

System_CAPS_pubmethodGetObject(String)

Retrieves the object that is associated with the specified key.

System_CAPS_pubmethodGetStringValue(String)

Retrieves a string that is associated with the specified key.

System_CAPS_pubmethodRemoveValue(String)

Removes the element with the specified key.

Return to top
Show:
© 2016 Microsoft