共用方式為


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

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

WebTestContext 成員

Microsoft.VisualStudio.TestTools.WebTesting 命名空間

其他資源

使用 Web 測試