UrlBuilder Klasa

Definicja

Uruchamia edytor adresów URL, który umożliwia użytkownikowi wybranie lub utworzenie adresu URL. Klasa ta nie może być dziedziczona.

public ref class UrlBuilder sealed
public sealed class UrlBuilder
type UrlBuilder = class
Public NotInheritable Class UrlBuilder
Dziedziczenie
UrlBuilder

Przykłady

W poniższym przykładzie kodu pokazano, jak użyć BuildUrl metody , aby uruchomić konstruktora adresów URL z poziomu polecenia menu w czasie projektowania.

// 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

Uwagi

Metoda BuildUrl uruchamia interfejs użytkownika do wybierania adresu URL.

Metody

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

Tworzy interfejs użytkownika do utworzenia lub wybrania adresu URL.

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

Tworzy interfejs użytkownika do tworzenia lub wybierania adresu URL przy użyciu określonego UrlBuilderOptions obiektu.

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

Tworzy interfejs użytkownika do tworzenia lub wybierania adresu URL przy użyciu określonego UrlBuilderOptions obiektu.

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy

Zobacz też