Rediger

Del via


WebClass.URLFor Method

Definition

Used to specify the URL that the system must have to reference a WebClassWebItem in the browser.

Overloads

URLFor(WebItem, String)

Specifies the URL that the system must have to reference a WebClassWebItem in the browser.

URLFor(String, String)

Specifies the URL that the system must have to reference a WebClassWebItem in the browser.

URLFor(WebItem, String)

Specifies the URL that the system must have to reference a WebClassWebItem in the browser.

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

Parameters

obj
WebItem

A WebItem object for which you want to generate a URL and raise an event.

EventName
String

Optional. A String that refers to an event in the WebItem.

Returns

A String that contains the URL.

Remarks

The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an ASP.NET Web-site project.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to

URLFor(String, String)

Specifies the URL that the system must have to reference a WebClassWebItem in the browser.

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

Parameters

objName
String

A String that contains the name of the WebItem object for which you want to generate a URL and raise an event.

EventName
String

Optional. A String that refers to an event in the WebItem.

Returns

A String that contains the URL.

Remarks

The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an ASP.NET Web-site project.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to