WebClass.URLFor 方法

定義

用來指定系統必須在瀏覽器中引用 a WebClassWebItem 的 URL。

多載

名稱 Description
URLFor(WebItem, String)

指定系統必須在瀏覽器中引用 a WebClassWebItem 的 URL。

URLFor(String, String)

指定系統必須在瀏覽器中引用 a WebClassWebItem 的 URL。

URLFor(WebItem, String)

指定系統必須在瀏覽器中引用 a WebClassWebItem 的 URL。

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

Optional. String A 指的是 中一個事件。WebItem

傳回

String A 裡面包含了 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)

指定系統必須在瀏覽器中引用 a WebClassWebItem 的 URL。

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

A String 包含你想產生 URL 並啟動事件的物件名稱 WebItem

EventName
String

Optional. String A 指的是 中一個事件。WebItem

傳回

String A 裡面包含了 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 實作有顯著差異時,才需要使用這些工具。

適用於