UITestControlFactory.FromNativeElement メソッド
指定されたネイティブ要素情報から、新しい UITestControl を返します。
名前空間: Microsoft.VisualStudio.TestTools.UITesting
アセンブリ: Microsoft.VisualStudio.TestTools.UITesting (Microsoft.VisualStudio.TestTools.UITesting.dll 内)
構文
'宣言
Public Shared Function FromNativeElement ( _
nativeElement As Object, _
technologyName As String _
) As UITestControl
public static UITestControl FromNativeElement(
Object nativeElement,
string technologyName
)
public:
static UITestControl^ FromNativeElement(
Object^ nativeElement,
String^ technologyName
)
static member FromNativeElement :
nativeElement:Object *
technologyName:string -> UITestControl
public static function FromNativeElement(
nativeElement : Object,
technologyName : String
) : UITestControl
パラメーター
- nativeElement
型 : System.Object
新しい UITestControl の作成に使用するネイティブ要素参照。
- technologyName
型 : System.String
新しい UITestControl の作成時に使用するテクノロジ名。
戻り値
型 : Microsoft.VisualStudio.TestTools.UITesting.UITestControl
指定されたネイティブ要素情報に基づく新しい UITestControl。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。