Udostępnij za pośrednictwem


SPMobileUrlRedirection Class

NOTE: This API is now obsolete.

Specifies the file name and URL of a page to which a mobile device should be redirected.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.MobileControls.MobileControl
      Microsoft.SharePoint.MobileControls.SPMobileComponent
        Microsoft.SharePoint.MobileControls.SPMobileUrlRedirection

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPMobileHomePageRedirection instead.")> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPMobileUrlRedirection _
    Inherits SPMobileComponent
'Usage
Dim instance As SPMobileUrlRedirection
[ObsoleteAttribute("Use SPMobileHomePageRedirection instead.")]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPMobileUrlRedirection : SPMobileComponent

Remarks

Use this component inside a <RenderingTemplate> element in a custom template file (in the folder %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES) to customize the redirection of mobile devices. For details, see How to: Customize the Mobile Home Page Through Redirection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPMobileUrlRedirection Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

How to: Customize the Mobile Home Page Through Redirection