UITechnologyManagerProxy.ConvertToThisTechnology 方法
轉換成另一種技術的指定項目轉換成這個技術管理員的新項目的項目。
這個用於作業 (例如在裝載間切換的方式和載入技術。
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
Public Overrides Function ConvertToThisTechnology ( _
elementToConvert As IUITechnologyElement, _
<OutAttribute> ByRef supportLevel As Integer _
) As IUITechnologyElement
public override IUITechnologyElement ConvertToThisTechnology(
IUITechnologyElement elementToConvert,
out int supportLevel
)
public:
virtual IUITechnologyElement^ ConvertToThisTechnology(
IUITechnologyElement^ elementToConvert,
[OutAttribute] int% supportLevel
) override
abstract ConvertToThisTechnology :
elementToConvert:IUITechnologyElement *
supportLevel:int byref -> IUITechnologyElement
override ConvertToThisTechnology :
elementToConvert:IUITechnologyElement *
supportLevel:int byref -> IUITechnologyElement
public override function ConvertToThisTechnology(
elementToConvert : IUITechnologyElement,
supportLevel : int
) : IUITechnologyElement
參數
- elementToConvert
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
要轉換的項目。
- supportLevel
型別:System.Int32%
支援層級提供的已轉換的項目從這個技術管理員。
傳回值
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
新的轉換項目在這項技術或為 null,則不能進行轉換。
實作
IUITechnologyManager.ConvertToThisTechnology(IUITechnologyElement, Int32%)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。