UtilWebRedirectUri(String, String) Method
Redirects an Url that points to other Url.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Uri RedirectUri(
string url,
string userAgent
)
Public Shared Function RedirectUri (
url As String,
userAgent As String
) As Uri
Dim url As String
Dim userAgent As String
Dim returnValue As Uri
returnValue = UtilWeb.RedirectUri(url,
userAgent)
public:
static Uri^ RedirectUri(
String^ url,
String^ userAgent
)
static member RedirectUri :
url : string *
userAgent : string -> Uri
No code example is currently available or this language may not be supported.
- url String
-
The url to redirect.
- userAgent String
-
The user agent to use for the query.
Uri
The redirected Url.
Url redirection, also called Url forwarding,
is a World Wide Web technique for making a web page available under more than one Url address.
When a web browser attempts to open a Url that has been redirected, a page with a different Url is opened.
This is a code example.
No code example is currently available or this language may not be supported.
Dim url As String = "http://goo.gl/PsCZN4"
Dim userAgent As String = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"
Dim resultUri As Uri = RedirectUri(url, userAgent)
Console.WriteLine(resultUri.AbsoluteUri)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.