IUITechnologyManager.ConvertToThisTechnology 方法

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

采用另一技术中的元素,并返回与当前技术兼容的元素以及当前技术对转换的元素的支持级别。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Extension
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

语法

声明
Function ConvertToThisTechnology ( _
    elementToConvert As IUITechnologyElement, _
    <OutAttribute> ByRef supportLevel As Integer _
) As IUITechnologyElement
IUITechnologyElement ConvertToThisTechnology(
    IUITechnologyElement elementToConvert,
    out int supportLevel
)
IUITechnologyElement^ ConvertToThisTechnology(
    IUITechnologyElement^ elementToConvert, 
    [OutAttribute] int% supportLevel
)
abstract ConvertToThisTechnology : 
        elementToConvert:IUITechnologyElement * 
        supportLevel:int byref -> IUITechnologyElement
function ConvertToThisTechnology(
    elementToConvert : IUITechnologyElement, 
    supportLevel : int
) : IUITechnologyElement

参数

  • supportLevel
    类型:Int32%

    (输出)新技术对提供的元素的支持级别。

返回值

类型:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
新元素。

.NET Framework 安全性

请参阅

参考

IUITechnologyManager 接口

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空间

IUITechnologyElement