WebTestContext 类

更新:2007 年 11 月

表示 WebTest 可用的上下文。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
<SerializableAttribute> _
Public Class WebTestContext _
    Implements IDictionary(Of String, Object),  _
    ICollection(Of KeyValuePair(Of String, Object)), IEnumerable(Of KeyValuePair(Of String, Object)),  _
    IEnumerable
用法
Dim instance As WebTestContext
[SerializableAttribute]
public class WebTestContext : IDictionary<string, Object>, 
    ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, 
    IEnumerable
[SerializableAttribute]
public ref class WebTestContext : IDictionary<String^, Object^>, 
    ICollection<KeyValuePair<String^, Object^>>, IEnumerable<KeyValuePair<String^, Object^>>, 
    IEnumerable
public class WebTestContext implements IDictionary<String, Object>, ICollection<KeyValuePair<String, Object>>, IEnumerable<KeyValuePair<String, Object>>, IEnumerable

备注

用于每一个 Web 测试,并包含描述 Web 测试的上下文的数据。此信息包括有关数据绑定值的数据、有关当前运行的信息(如 AgentIdControllerName)以及其他上下文信息。

该类不提供任何公共构造函数。

继承层次结构

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestContext

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

WebTestContext 成员

Microsoft.VisualStudio.TestTools.WebTesting 命名空间

其他资源

使用 Web 测试