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요청 된 네이티브 컨트롤 형식의 종류입니다.
반환 값
형식: Object
지원 되는 경우 기본 null 의미 하거나 컨트롤의 형식입니다.
구현
IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.