WebTestContext Methods

Include Protected Members
Include Inherited Members

The WebTestContext type exposes the following members.

Methods

  Name Description
Public method Add(KeyValuePair<String, Object>) Adds a KeyValuePair<TKey, TValue> object to the WebTestContext.
Public method Add(String, Object) Adds an element with the provided key and value to the WebTestContext.
Public method Clear Removes all the elements from the WebTestContext.
Public method Contains Determines whether the WebTestContext contains the specified key/value pair.
Public method ContainsKey Determines whether the WebTestContext contains an element with the specified key.
Public method CopyTo Copies the WebTestContext elements to an array of KeyValuePair<TKey, TValue> objects
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an IEnumerator<T> that contains the WebTestContext elements.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(KeyValuePair<String, Object>) Removes a KeyValuePair<TKey, TValue> from the WebTestContext.
Public method Remove(String) Removes the element with the specified key from the WebTestContext.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetValue Gets the value associated with the specified key.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection of WebTestContext elements.

Top

See Also

Reference

WebTestContext Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace