Share via


UrlBuilder.BuildUrl メソッド

定義

URL を作成または選択するための UI を作成します。

オーバーロード

BuildUrl(IComponent, Control, String, String, String)

URL を作成または選択するための UI を作成します。

BuildUrl(IComponent, Control, String, String, String, UrlBuilderOptions)

指定した UrlBuilderOptions オブジェクトを使用して、URL を作成または選択するための UI を作成します。

BuildUrl(IServiceProvider, Control, String, String, String, UrlBuilderOptions)

指定した UrlBuilderOptions オブジェクトを使用して、URL を作成または選択するための UI を作成します。

BuildUrl(IComponent, Control, String, String, String)

URL を作成または選択するための UI を作成します。

public:
 static System::String ^ BuildUrl(System::ComponentModel::IComponent ^ component, System::Windows::Forms::Control ^ owner, System::String ^ initialUrl, System::String ^ caption, System::String ^ filter);
public static string BuildUrl (System.ComponentModel.IComponent component, System.Windows.Forms.Control owner, string initialUrl, string caption, string filter);
static member BuildUrl : System.ComponentModel.IComponent * System.Windows.Forms.Control * string * string * string -> string
Public Shared Function BuildUrl (component As IComponent, owner As Control, initialUrl As String, caption As String, filter As String) As String

パラメーター

component
IComponent

デザイン時サービスにアクセスするために使用するサイトを持つ IComponent

owner
Control

ピッカー ウィンドウの親として使用される Control

initialUrl
String

ピッカー ウィンドウに表示される初期 URL。

caption
String

ピッカー ウィンドウのキャプション。

filter
String

ピッカー ウィンドウに表示されたファイルをオプションでフィルター処理するために使用するフィルター文字列。

戻り値

UI から返された URL。

次のコード例は、 メソッドを使用 BuildUrl して、デザイン時にメニュー コマンドから URL ビルダーを起動する方法を示しています。

// 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 );
// 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);                      
}
' 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

こちらもご覧ください

適用対象

BuildUrl(IComponent, Control, String, String, String, UrlBuilderOptions)

指定した UrlBuilderOptions オブジェクトを使用して、URL を作成または選択するための UI を作成します。

public:
 static System::String ^ BuildUrl(System::ComponentModel::IComponent ^ component, System::Windows::Forms::Control ^ owner, System::String ^ initialUrl, System::String ^ caption, System::String ^ filter, System::Web::UI::Design::UrlBuilderOptions options);
public static string BuildUrl (System.ComponentModel.IComponent component, System.Windows.Forms.Control owner, string initialUrl, string caption, string filter, System.Web.UI.Design.UrlBuilderOptions options);
static member BuildUrl : System.ComponentModel.IComponent * System.Windows.Forms.Control * string * string * string * System.Web.UI.Design.UrlBuilderOptions -> string
Public Shared Function BuildUrl (component As IComponent, owner As Control, initialUrl As String, caption As String, filter As String, options As UrlBuilderOptions) As String

パラメーター

component
IComponent

デザイン時サービスにアクセスするために使用するサイトを持つ IComponent

owner
Control

ピッカー ウィンドウの親として使用される Control

initialUrl
String

ピッカー ウィンドウに表示される初期 URL。

caption
String

ピッカー ウィンドウのキャプション。

filter
String

ピッカー ウィンドウに表示されたファイルをオプションでフィルター処理するために使用するフィルター文字列。

options
UrlBuilderOptions

URL 選択のオプションを示す UrlBuilderOptions

戻り値

UI から返された URL。

// 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 );
// 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);                      
}
' 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

こちらもご覧ください

適用対象

BuildUrl(IServiceProvider, Control, String, String, String, UrlBuilderOptions)

指定した UrlBuilderOptions オブジェクトを使用して、URL を作成または選択するための UI を作成します。

public:
 static System::String ^ BuildUrl(IServiceProvider ^ serviceProvider, System::Windows::Forms::Control ^ owner, System::String ^ initialUrl, System::String ^ caption, System::String ^ filter, System::Web::UI::Design::UrlBuilderOptions options);
public static string BuildUrl (IServiceProvider serviceProvider, System.Windows.Forms.Control owner, string initialUrl, string caption, string filter, System.Web.UI.Design.UrlBuilderOptions options);
static member BuildUrl : IServiceProvider * System.Windows.Forms.Control * string * string * string * System.Web.UI.Design.UrlBuilderOptions -> string
Public Shared Function BuildUrl (serviceProvider As IServiceProvider, owner As Control, initialUrl As String, caption As String, filter As String, options As UrlBuilderOptions) As String

パラメーター

serviceProvider
IServiceProvider

デザイン時サービスにアクセスするために使用する IServiceProvider

owner
Control

ピッカー ウィンドウの親として使用される Control

initialUrl
String

ピッカー ウィンドウに表示される初期 URL。

caption
String

ピッカー ウィンドウのキャプション。

filter
String

ピッカー ウィンドウに表示されたファイルをオプションでフィルター処理するために使用するフィルター文字列。

options
UrlBuilderOptions

URL 選択のオプションを示す UrlBuilderOptions

戻り値

UI から返された URL。

注釈

インターフェイスは IServiceProvider 、デザイナー ホストの実装を IDesignerHost 取得するために使用されます。

こちらもご覧ください

適用対象