HomeExtensionsToURL Method | |
Gives a Home URL from MVC controller and action name e.g. ~/Home/LogIn.
Namespace:
SOWIWeb.Foundation
Assembly:
SOWIWeb.Foundation (in SOWIWeb.Foundation.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string ToURL(
this Home pHomeView
)
<ExtensionAttribute>
Public Shared Function ToURL (
pHomeView As Home
) As String
Parameters
- pHomeView
- Type: SOWIWeb.FoundationHome
A view name of enumeration Home
Return Value
Type:
StringURL from Home controller
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Home. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
When a redirection to another URL e.g change domain. Puts his URL at controller name.
See Also