Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPMobileUtility methods

The SPMobileUtility type exposes the following members.

  Name Description
Public method Static member AppendMobileQueryString Returns the URL with either “?Mobile=1” or “?Mobile=0” appended to the end.
Public method Static member AppendSourceQueryString Appends, to the URL of a mobile page, the URL of the page from which the user navigated; that is, the page to which a Back button would navigate.
Public method Static member CreateFolderNavigation Obsolete. Creates a link to the contents of a child folder.
Public method Static member CreateLogOnSelector Obsolete. Creates a logOn selector based on the ClaimsAuthenticationProviders in the current context.
Public method Static member EncodeQueryStrings Returns the URL with all query values encoded.
Public method Static member GenerateExternalUri Generates an external (outside the firewall) URI for the page in the specified internal URI.
Public method Static member GenerateInternalUrl Returns an absolute internal (within the firewall) URL based on the specified URL.
Public method Static member GetApplicationPath() Returns the application path for the current mobile Web application.
Public method Static member GetApplicationPath(SPWeb) Returns the application path for the specified mobile Web application.
Public method Static member GetAppRootDirName() Gets the Web-relative mobile application root directory path.
Public method Static member GetAppRootDirName(SPWeb) Obsolete. Gets the Web-relative mobile application root directory path.
Public method Static member GetBooleanFieldValue Returns the value of the specified Boolean field.
Public method Static member GetClaimsAuthenticationProvider Gets the specified Claims Authentication provider from the current. context.
Public method Static member GetDateOptions Returns the date options of the mobile Web application that are associated with the specified context and calendar type.
Public method Static member GetDispFormUrl() Returns the URL of the display form (DispForm.aspx) of the mobile Web application.
Public method Static member GetDispFormUrl(SPContext) Returns the URL of the display form (DispForm.aspx) of the mobile Web application.
Public method Static member GetDispFormUrl(SPListItem) Creates the display form from a SPListItem
Public method Static member GetDispFormUrl(SPView, SPItem, SPContext) Returns the URL of the display form (DispForm.aspx) of the mobile Web application.
Public method Static member GetEditFormUrl() Returns the URL of the edit form (EditForm.aspx) of the mobile Web application.
Public method Static member GetEditFormUrl(SPContext) Returns the URL of the edit form (EditForm.aspx) of the mobile Web application.
Public method Static member GetEditFormUrl(SPView, SPItem, SPContext) Returns the URL of the edit form (EditForm.aspx) of the mobile Web application.
Public method Static member GetEllipsisString(String, Int32) Returns a truncated version of the specified string up to the specified length with ellipsis characters appended, or the entire string if it does not exceed the specified length.
Public method Static member GetEllipsisString(String, Int32, String) Returns a truncated version of the specified string up to the specified length with ellipsis characters appended, or the entire string if it does not exceed the specified length.
Public method Static member GetErrorMessage Returns error message text for the specified HTTP context.
Public method Static member GetFirstMobileView Obsolete. Returns the first view in the specified list that applies to a mobile device.
Public method Static member GetFormUrl(PAGETYPE) Returns the URL of the specified form in a mobile Web application.
Public method Static member GetFormUrl(SPContext, PAGETYPE) Returns the URL of the specified form in a mobile Web application.
Public method Static member GetFormUrl(SPView, SPItem, SPContext, PAGETYPE) Returns the URL of the specified form in a mobile Web application.
Public method Static member GetFormUrl(SPView, SPList, SPItem, SPContext, PAGETYPE) Returns the URL of the specified form in a mobile Web application.
Public method Static member GetIisSettings Gets an object with IIS settings based on the specified HTTP context.
Public method Static member GetImageSizeFromUri Gets the size in Kbytes of the image file at the specified path.
Public method Static member GetItemId Returns the identifier of the specified data transport item of a mobile Web application.
Public method Static member GetMobileConfigValue Returns a string version of the configuration value for the specified mobile Web application.
Public method Static member GetMobileConfigValueAsInt Returns an integer version of the configuration value for the specified mobile Web application.
Public method Static member GetMobileDefaultView Obsolete. Returns the default view for an item in the specified list that applies to a mobile device.
Public method Static member GetMobileViewFromList(SPList) Gets the default mobile view of the specified list.
Public method Static member GetMobileViewFromList(SPList, SPContext) Gets the default mobile view of the specified list for the specified context.
Public method Static member GetNewFormUrl() Returns the URL of the new form (NewForm.aspx) of a mobile Web application.
Public method Static member GetNewFormUrl(SPContext) Returns the URL of the new form (NewForm.aspx)of a mobile Web application.
Public method Static member GetNewFormUrl(SPView, SPContext) Returns the URL of the new form (NewForm.aspx)of a mobile Web application.
Public method Static member GetShortApplicationPath() Returns the abbreviated application path for the current mobile Web application.
Public method Static member GetShortApplicationPath(SPWeb) Returns the abbreviated application path for the specified mobile Web application.
Public method Static member GetSPMobileCookieValue Returns the value of SPMobileCookieName if exist.
Public method Static member GetUrlKeyValue Returns a string version of the value associated with the specified URL key.
Public method Static member GetUrlKeyValueAsInt Returns an integer version of the value that is associated with the specified URL key.
Public method Static member GetValidMobileView Obsolete. Returns the next valid mobile view for the specified list.
Public method Static member GetViewUrl(SPList) Returns the URL of the current list view in a mobile Web application.
Public method Static member GetViewUrl(SPList, SPView) Returns the URL of the specified list view in a mobile Web application.
Public method Static member GetViewUrl(SPList, SPView, SPContext, SPFolder) Returns the URL of the specified list view in a mobile Web application.
Public method Static member GetViewUrl(SPList, SPView, SPFolder) Returns the URL of the specified list view in a mobile Web application.
Public method Static member GetWebConfigValue Returns the site configuration value that is associated with the specified configuration key for a mobile Web application.
Public method Static member GetWebPropertyValue Returns the value of the specified Web property.
Public method Static member IsAutoMobileBrowserRedirectActive Returns whether Automatic Mobile Browser Redirection is activate or not.
Public method Static member IsFileUploadSupported Returns a value that indicates whether a mobile device can upload files according to the specified capabilities object.
Public method Static member IsMobilePageRequest Returns a value that indicates whether the mobile version of the request page should be returned.
Public method Static member IsValidField Returns a Boolean value that indicates whether the specified field is valid.
Public method Static member IsValidTemplateName Returns a Boolean value that indicates whether the specified template name for a mobile Web application is valid.
Public method Static member IsViewExcluded Returns a value that indicates whether the specified view, in the specified context, is not allowed on mobile devices.
Public method Static member IsViewFieldExcluded Returns a value that indicates whether the specified field (column) appears in mobile list view.
Public method Static member Redirect(String, SPRedirectFlags, HttpContext) Redirects the user to the specified URL, if it is valid.
Public method Static member Redirect(String, SPRedirectFlags, HttpContext, String) Redirects the user to the specified URL, if it is valid, with the specified query strings.
Public method Static member RemoveWssAuthCookies Removes WSS cookies, which are used for Claims Authentication.
Public method Static member SetErrorMessage Specifies error message text for the specified HTTP context.
Public method Static member SetSPMobileCookieValue Set cookie for SPMobileCookieName.
Public method Static member SupportsTouchUserInterface Gets a value that indicates whether the mobile device browser supports touch screens.
Public method Static member UrlKeyValueDecode Decodes the specified query string from a URL that was encoded with the UrlKeyValueEncode(String) method.
Public method Static member UrlKeyValueEncode Encodes the specified query string (key/value pair) as either UTF-8 or Unicode depending on the device capabilities.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.