UITechnologyElementProxy.GetNativeControlType メソッド
この要素のネイティブ コントロールの型を取得します。これは GetControlType によって取得した汎用型とともに、ControlType がコントロールを一意に識別するのに十分である場合に使用することができます。
たとえば、ネイティブなテクノロジ要素が、これは 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 セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。