UITechnologyElementProxy.GetNativeControlType 方法
取得這個項目的原生控制項型別。 ,當 ControlType 不區分足夠的控制項時,這可與傳遞 GetControlType() 取得的通用型別串聯。
例如,在中,如果是在本機技術項目是 HTML,這可能是在標記名稱。
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
Public Overrides Function GetNativeControlType ( _
nativeControlTypeKind As NativeControlTypeKind _
) As Object
public override Object GetNativeControlType(
NativeControlTypeKind nativeControlTypeKind
)
public:
virtual Object^ GetNativeControlType(
NativeControlTypeKind nativeControlTypeKind
) override
abstract GetNativeControlType :
nativeControlTypeKind:NativeControlTypeKind -> Object
override GetNativeControlType :
nativeControlTypeKind:NativeControlTypeKind -> Object
public override function GetNativeControlType(
nativeControlTypeKind : NativeControlTypeKind
) : Object
參數
- nativeControlTypeKind
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKind
要求的種類原生控制項型別。
傳回值
型別:System.Object
如果支援,則控制項的原生型別則為 null。
實作
IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。