WebBrowserTask.URL Property

Note: This API is now obsolete.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the URL to which the web browser application will navigate when it is launched.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

<ObsoleteAttribute("Please use Uri property")> _
Public Property URL As String
[ObsoleteAttribute("Please use Uri property")]
public string URL { get; set; }
<object URL="string" .../>

Property Value

Type: System..::.String
Type: String. The URL to which the web browser application will navigate when it is launched.

Remarks

The URL property is deprecated. Use the Uri property instead. If the URI property has already been set, setting this property will throw an InvalidOperationException.

Version Information

Windows Phone OS

Supported in: 7.0
Obsolete (compiler warning) in 8.1
Obsolete (compiler warning) in 8.0
Obsolete (compiler warning) in 7.1

Platforms

Windows Phone

See Also

Reference

WebBrowserTask Class

Microsoft.Phone.Tasks Namespace

Other Resources

Launchers and Choosers for Windows Phone 8

How to use the web browser task for Windows Phone 8