更新: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。
使用權限
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。