次の方法で共有


IWebFormsBuilderUIService.BuildUrl メソッド

URL プロパティを構築するエディタを起動します。

Function BuildUrl( _
   ByVal owner As Control, _   ByVal initialUrl As String, _   ByVal baseUrl As String, _   ByVal caption As String, _   ByVal filter As String, _   ByVal options As UrlBuilderOptions _) As String
[C#]
string BuildUrl(
   Controlowner,stringinitialUrl,stringbaseUrl,stringcaption,stringfilter,UrlBuilderOptionsoptions);
[C++]
String* BuildUrl(
   Control* owner,String* initialUrl,String* baseUrl,String* caption,String* filter,UrlBuilderOptionsoptions);
[JScript]
function BuildUrl(
   owner : Control,initialUrl : String,baseUrl : String,caption : String,filter : String,options : UrlBuilderOptions) : String;

パラメータ

  • owner
    UrlBuilder によって表示されるダイアログの親として使用されるコントロール。
  • initialUrl
    選択インターフェイスに表示する初期 URL。
  • baseUrl
    相対 URL を作成するために使用されるベース URL。
  • caption
    選択インターフェイスにメッセージを表示するキャプション。
  • filter
    選択インターフェイスに表示されたファイルをオプションでフィルタ処理するために使用するフィルタ文字列。
  • options
    UrlBuilder のオプションを示す UrlBuilderOptions

戻り値

UrlBuilder によって返された URL を格納している文字列。

使用例

 
' Obtain an instance of an IWebFormsBuilderUIService.
Dim builderService As IWebFormsBuilderUIService = _
CType(Me.Component.Site.GetService(GetType(IWebFormsBuilderUIService)), _
    IWebFormsBuilderUIService)

' Return from method if the service was not obtained.            
If builderService Is Nothing Then
    Return
End If

' Create a parent control.
Dim c As New System.Windows.Forms.Control()
c.CreateControl()

' Start the URL builder using the specified control
' parent, initial URL, empty relative base URL path,
' window caption, empty filter string and URLBuilderOptions value.
builderService.BuildUrl(c, "http://www.example.com", "", _
    "Select a URL", "", UrlBuilderOptions.None)

[C#] 
// Obtain an instance of an IWebFormsBuilderUIService.
IWebFormsBuilderUIService builderService =                  (IWebFormsBuilderUIService)this.Component.Site.GetService(
     typeof(IWebFormsBuilderUIService));

// Return from method if service was not obtained.            
if( builderService == null )
    return;

// Create a parent control.
System.Windows.Forms.Control c = new System.Windows.Forms.Control();            
c.CreateControl();            

// Start the URL builder using the specified control
// parent, initial URL, empty relative base URL path,
// window caption, empty filter string and URLBuilderOptions value.
builderService.BuildUrl(c, "http://www.example.com", "", 
    "Select a URL", "", UrlBuilderOptions.None);

[C++] 
// Obtain an instance of an IWebFormsBuilderUIService.
IWebFormsBuilderUIService* builderService =
   dynamic_cast<IWebFormsBuilderUIService*>(this->Component->Site->GetService(__typeof(IWebFormsBuilderUIService)));

// Return from method if service was not obtained.
if (builderService == 0)
   return;

// Create a parent control.
System::Windows::Forms::Control* c = new System::Windows::Forms::Control();
c->CreateControl();

// Start the URL builder using the specified control
// parent, initial URL, empty relative base URL path,
// window caption, empty filter string and URLBuilderOptions value.
builderService->BuildUrl(c, S"http://www.example.com", S"",
   S"Select a URL", S"", UrlBuilderOptions::None);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

IWebFormsBuilderUIService インターフェイス | IWebFormsBuilderUIService メンバ | System.Web.UI.Design 名前空間