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 命名空间