共用方式為


WebTest.InheritFromWebTest 屬性

更新:2007 年 11 月

當這個 Web 測試包含在其他 Web 測試中,並且繼承上層 Web 測試的屬性時,取得上層 Web 測試的 WebTest 物件。

命名空間:  Microsoft.VisualStudio.TestTools.WebTesting
組件:  Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

語法

Public Property InheritFromWebTest As WebTest

Dim instance As WebTest
Dim value As WebTest

value = instance.InheritFromWebTest

instance.InheritFromWebTest = value
public WebTest InheritFromWebTest { get; internal set; }
public:
property WebTest^ InheritFromWebTest {
    WebTest^ get ();
    void set (WebTest^ value);
}
public function get InheritFromWebTest () : WebTest
public function set InheritFromWebTest (value : WebTest)

屬性值

型別:Microsoft.VisualStudio.TestTools.WebTesting.WebTest

如果這個 Web 測試並未包含在其他 Web 測試中,並且繼承自上層 Web 測試,則傳回 WebTest 物件。

如果這個 Web 測試並未包含在其他 Web 測試中,或是並未繼承自上層 Web 測試,則傳回 NULL。

使用權限

請參閱

參考

WebTest 類別

WebTest 成員

Microsoft.VisualStudio.TestTools.WebTesting 命名空間