UrlBuilder クラス
アセンブリ: System.Design (system.design.dll 内)
構文
解説
使用例
BuildUrl メソッドを使用して、デザイン時にメニュー コマンドから URL ビルダを起動する方法を次のコード例に示します。
' This method handles the "Launch Url Builder UI" menu command. ' Invokes the BuildUrl method of the System.Web.UI.Design.UrlBuilder. Private Sub launchUrlBuilder(ByVal sender As Object, ByVal e As EventArgs) ' Create a parent control. Dim c As New System.Windows.Forms.Control() c.CreateControl() ' Launch the Url Builder using the specified control ' parent, initial URL, empty relative base URL path, ' window caption, filter string and URLBuilderOptions value. UrlBuilder.BuildUrl( _ Me.Component, _ c, _ "http://www.example.com", _ "Select a URL", _ "", _ UrlBuilderOptions.None) End Sub
// This method handles the "Launch Url Builder UI" menu command. // Invokes the BuildUrl method of the System.Web.UI.Design.UrlBuilder. private void launchUrlBuilder(object sender, EventArgs e) { // Create a parent control. System.Windows.Forms.Control c = new System.Windows.Forms.Control(); c.CreateControl(); // Launch the Url Builder using the specified control // parent, initial URL, empty relative base URL path, // window caption, filter string and URLBuilderOptions value. UrlBuilder.BuildUrl( this.Component, c, "http://www.example.com", "Select a URL", "", UrlBuilderOptions.None); }
// Create a parent control. System::Windows::Forms::Control^ c = gcnew System::Windows::Forms::Control; c->CreateControl(); // Launch the Url Builder using the specified control // parent, initial URL, empty relative base URL path, // window caption, filter String* and URLBuilderOptions value. UrlBuilder::BuildUrl( this->Component, c, "http://www.example.com", "Select a URL", "", UrlBuilderOptions::None );
System.Web.UI.Design.UrlBuilder
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- UrlBuilder クラスのページへのリンク