UtilWebRedirectUri(Uri, 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(
Uri uri,
string userAgent
)
Public Shared Function RedirectUri (
uri As Uri,
userAgent As String
) As Uri
Dim uri As Uri
Dim userAgent As String
Dim returnValue As Uri
returnValue = UtilWeb.RedirectUri(uri,
userAgent)
public:
static Uri^ RedirectUri(
Uri^ uri,
String^ userAgent
)
static member RedirectUri :
uri : Uri *
userAgent : string -> Uri
No code example is currently available or this language may not be supported.
- uri Uri
-
The Uri 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 uri As New Uri("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(uri, 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.