次の方法で共有


BrowserWindow.Locate メソッド

ウィンドウのタイトルを使用して Web ブラウザー ウィンドウを見つけて、対応するブラウザー ウィンドウ オブジェクトを返します。

名前空間:  Microsoft.VisualStudio.TestTools.UITesting
アセンブリ:  Microsoft.VisualStudio.TestTools.UITesting (Microsoft.VisualStudio.TestTools.UITesting.dll 内)

構文

'宣言
Public Shared Function Locate ( _
    title As String _
) As BrowserWindow
public static BrowserWindow Locate(
    string title
)
public:
static BrowserWindow^ Locate(
    String^ title
)
static member Locate : 
        title:string -> BrowserWindow 
public static function Locate(
    title : String
) : BrowserWindow

パラメーター

  • title
    型 : System.String
    見つける Web ブラウザー ウィンドウのタイトル。

戻り値

型 : Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow
Web ブラウザー ウィンドウ オブジェクト。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

BrowserWindow クラス

Microsoft.VisualStudio.TestTools.UITesting 名前空間