SPMobileUrlRedirection.Url Property

NOTE: This API is now obsolete.

Gets or sets the URL of the page to which a mobile device should be redirected.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPMobileHomePageRedirection instead.")> _
Public Property Url As String
    Get
    Set
'Usage
Dim instance As SPMobileUrlRedirection
Dim value As String

value = instance.Url

instance.Url = value
[ObsoleteAttribute("Use SPMobileHomePageRedirection instead.")]
public string Url { get; set; }

Property Value

Type: System.String
A String that specifies the page to which a mobile device should be redirected.

Remarks

Setting Url does not set PageFileName to a consistent value. For example, if Url is set to "\\ServerName\MySite\m\MySpecialPage.aspx", PageFileName is not set to "MySpecialPage.aspx".

However, setting PageFileName does set Url to a consistent value.

See Also

Reference

SPMobileUrlRedirection Class

SPMobileUrlRedirection Members

Microsoft.SharePoint.MobileControls Namespace