IUITechnologyElement.GetNativeControlType 方法
返回此元素的本机控件类型。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Extension
程序集: Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)
语法
声明
Function GetNativeControlType ( _
nativeControlTypeKind As NativeControlTypeKind _
) As Object
Object GetNativeControlType(
NativeControlTypeKind nativeControlTypeKind
)
Object^ GetNativeControlType(
NativeControlTypeKind nativeControlTypeKind
)
abstract GetNativeControlType :
nativeControlTypeKind:NativeControlTypeKind -> Object
function GetNativeControlType(
nativeControlTypeKind : NativeControlTypeKind
) : Object
参数
- nativeControlTypeKind
类型:Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKind
NativeControlTypeKind 枚举的一个成员。
返回值
类型:System.Object
如果受支持,则为控件的本机类型;否则为 nullnull 引用(在 Visual Basic 中为 Nothing)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。