WebClass.URLFor 方法

定義

用於指定 URL,系統必須有這個 URL 才能在瀏覽器中參考 WebClassWebItem

多載

URLFor(WebItem, String)

指定 URL,系統必須有這個 URL 才能在瀏覽器中參考 WebClassWebItem

URLFor(String, String)

指定 URL,系統必須有這個 URL 才能在瀏覽器中參考 WebClassWebItem

URLFor(WebItem, String)

指定 URL,系統必須有這個 URL 才能在瀏覽器中參考 WebClassWebItem

public string URLFor (Microsoft.VisualBasic.Compatibility.VB6.WebItem obj, string EventName = "");
member this.URLFor : Microsoft.VisualBasic.Compatibility.VB6.WebItem * string -> string
Public Function URLFor (obj As WebItem, Optional EventName As String = "") As String

參數

obj
WebItem

WebItem 物件,您需要這個物件來產生 URL 和引發事件。

EventName
String

選擇性。 String,參考 WebItem 中的事件。

傳回

String,包含 URL。

備註

升級工具會使用 類別 WebClass ,將Visual Basic 6.0 WebClass 項目升級至 ASP.NET 網站專案。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於

URLFor(String, String)

指定 URL,系統必須有這個 URL 才能在瀏覽器中參考 WebClassWebItem

public string URLFor (string objName, string EventName = "");
member this.URLFor : string * string -> string
Public Function URLFor (objName As String, Optional EventName As String = "") As String

參數

objName
String

String,包含 WebItem 物件的名稱,您需要這個物件來產生 URL 和引發事件。

EventName
String

選擇性。 String,參考 WebItem 中的事件。

傳回

String,包含 URL。

備註

升級工具會使用 類別 WebClass ,將Visual Basic 6.0 WebClass 項目升級至 ASP.NET 網站專案。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於