SPUtility members

Provides tools for converting date and time formats, for obtaining information from user names, for modifying access to sites, and for various other tasks in managing deployments of Microsoft SharePoint Foundation.

The SPUtility type exposes the following members.

Properties

  Name Description
Public propertyStatic member ContextCompatibilityLevel Getsthe compatibility level of the context site.
Public propertyStatic member ContextControlTemplatesFolder return versioned controlTemplates folder for the contextSite. if there is no context site, return controlTemplates folder for current major version
Public propertyStatic member ContextImagesRoot Returns the versioned images folder for the contextSite. If there is no context site, returns images folder for current major version.
Public propertyStatic member ContextLayoutsFolder Getsthe versioned layouts folder for the context site.
Public propertyStatic member CurrentThemeFolderName Gets the name of the current theme folder.
Public propertyStatic member DefaultSiteIconFileName
Public propertyStatic member DeveloperDashboardIsEnabled Gets the developer dashboard enabled-status for the current request.
Public propertyStatic member IsCompatibilityLevel15Up
Public propertyStatic member LAYOUTS_LATESTVERSION
Public propertyStatic member OriginalServerRelativeRequestPath In the context of a web request, WSS will sometimes rewrite urls in _layouts and a few other file system directories. This property returns the original path before it was rewritten, which is useful if you need to get the subweb from which a layouts page was loaded. For example, when you open the link /subweb/_layouts/settings.aspx, WSS will rewrite the request url to /_layouts/settings.aspx, which is where the file is actually stored on the filesystem.
Public propertyStatic member OriginalServerRelativeRequestUrl Gets the original URL after the Microsoft SharePoint Foundation server has re-written it.
Public propertyStatic member RELATIVE_LAYOUTS_LATESTVERSION

Top

Methods

  Name Description
Public methodStatic member AddCellStoragePartition Obsolete. Adds a new partition mapping for an application to execute cell storage operations.
Public methodStatic member AddDefaultWikiContent Initializes a wiki library with welcome and help content and sets the root folder welcome name for the list.
Public methodStatic member AllItemsQuery Obsolete.
Public methodStatic member AlternateServerUrlFromHttpRequestUrl Returns the outgoing URL for the alternate request URL represented by the specified URI.
Public methodStatic member AutoHyperlinking Converts URLs and email addresses in a plain text string into hyperlinks in an HTML-encoded string.
Public methodStatic member BinarySearchWithFallback<T> Performs a binary search of a list for a generic object. If the object is not found in the list, this method finds the zero-based index location in the list at which the generic object should be inserted.
Public methodStatic member ChangeAccountPassword Changes an account password for the specified SharePoint site.
Public methodStatic member CheckForCustomToolpane Checks if the Web page is currently using a custom tool pane. For example, if the page is loaded in SharePoint Designer.
Public methodStatic member ConcatUrls Concatenates two URL strings into one.
Public methodStatic member ConvertDateTimeToJavaScriptTimeStamp Convert DateTime to JvaScript time stamp (milliseconds since midnight Jan 1, 1970 UTC)
Public methodStatic member ConvertHtmlLinkToWikiLink(String, SPList) Converts HTML to Wiki tags given an input string and the URL for a list.
Public methodStatic member ConvertHtmlLinkToWikiLink(String, String) Converts HTML to Wiki tags given an input string and the URL for a folder.
Public methodStatic member ConvertSPRightsToSPBasePermissions Converts SPRights bit mask into SPBasePermissions bit mask.
Public methodStatic member ConvertWikiLinkToHtmlLink(String, SPList) Converts Wiki tags to HTML given the URL for a list.
Public methodStatic member ConvertWikiLinkToHtmlLink(String, String) Converts Wiki tags to HTML given the URL for a folder.
Public methodStatic member CreateDateTimeFromISO8601DateTimeString Converts the specified ISO 8601 date-time value to a string DateTime format.
Public methodStatic member CreateDateTimeFromSqlString Converts the specified SQL string (in yyyymmdd hh:mm:ss format) to DateTime format.
Public methodStatic member CreateEmailBodyForInvitation Returns a string that can be used as the body of an email message that contains a link to a SharePoint Foundation page.
Public methodStatic member CreateISO8601DateTimeFromSystemDateTime Converts a system DateTime value to ISO8601 DateTime format (yyyy-mm-ddThh:mm:ssZ).
Public methodStatic member CreateNewDiscussion(SPList, String) Creates a new SPListItem representing a discussion in a specified list.
Public methodStatic member CreateNewDiscussion(SPListItemCollection, String) Creates a new SPListItem representing a discussion in a specified collection of list items.
Public methodStatic member CreateNewDiscussion_Client
Public methodStatic member CreateNewDiscussionReply Creates a new SPListItem representing a reply to another item in a Discussion Board.
Public methodStatic member CreateNewWikiPage Adds a new Wiki page to a Wiki page library.
Public methodStatic member CreateParentFoldersForFile Creates a folder hierarchy necessary to create a list item, including the list in which to create the item, as well as an indication whether to create additional list items that correspond to the folders.
Public methodStatic member CreateSystemDateTimeFromXmlDataDateTimeFormat Converts the date and time value from ISO8601 DateTime format (YYYY-MM-DDTHH:MM:SSZ) to system DateTime format (mm/dd/yyyy hh:mm:ss AM or PM).
Public methodStatic member CreateThreadIndex Creates a new conversation thread-index from a parent conversation thread-index.
Public methodStatic member CryptSafeEquals Test two strings for equality in such a way that the execution time of the compare is independent of which bytes in the strings are equal.
Public methodStatic member DetermineRedirectUrl Helper function that determines a redirection URL, typically for server-side redirects. For example, a redirection that uses SPUtility.Redirect.
Public methodStatic member DoesFieldSupportIsRelationship Returns a Boolean value that indicates whether a lookup field has relationship features.
Public methodStatic member DumpTypes Obsolete.
Public methodStatic member EnsureAuthentication() Determines whether the current user is authenticated, and that a context Web for the current HTTP request exists; otherwise, asks the user to authenticate.
Public methodStatic member EnsureAuthentication(SPWeb) Determines whether the current user is authenticated, and that the web parameter is not a null reference (Nothing in Visual Basic); otherwise, requests the user to authenticate.
Public methodStatic member EnsureSessionCredentials Obsolete.
Public methodStatic member EnsureSiteAdminAccess Determines whether the current user is a site administrator on the specified site and, if not, requests a user name and password, and then opens the Error page for an “access denied” exception so that the user must request access to the site or list from the owner.
Public methodStatic member ExecuteCobaltRequest Takes a stream which represents an entire Cobalt Request deserializes it and executes it, returning the result as an Atom. Input can be serialized as either FssHttp or FssHttpB (we will detect which you are using) This is the preferred method for executing Cobalt Requests.
Public methodStatic member ExecuteProxyOperation Called from full trust code running in the Windows SharePoint User Code Service worker process in order to execute an operation that cannot otherwise be performed in the process. This method cannot be called directly by user code.
Public methodStatic member ExecuteRegisteredProxyOperation Executes an operation that is prevented in the shim in the proxy process of the UserCode service.
Public methodStatic member FastUrlSubsumes(Uri, Uri) Accepts two server- or service-relative URLs and determines if the subsumer URL is equivalent to the subsumed URL or if it refers to a directory that contains it.
Public methodStatic member FastUrlSubsumes(Uri, Uri, Boolean) Accepts two server- or service-relative URLs and determines if the subsumer URL is equivalent to the subsumed URL or if it refers to a directory that contains it.
Public methodStatic member FIsFatalException Returns a Boolean value that indicates whether a specified exception is a fatal exception.
Public methodStatic member FIsProcessCriticalException Returns a Boolean value that indicates whether a specified exception is a critical exception.
Public methodStatic member FlushIISToken Invalidates the user token for all application pool accounts.
Public methodStatic member FormatAccountName(String) Retrieves a concatenated string containing the provider and user values in order, separated by a colon (":"). This method retrieves the concatenated string based only on the user name.
Public methodStatic member FormatAccountName(String, String) Validates the provider and user string values. If these strings are valid, this method concatenates the provider and user values in order, with a colon (":") between them, and returns the concatenated string.
Public methodStatic member FormatDate Converts the specified date and time value to an SPDateFormat format.
Public methodStatic member FormatSize Determines the format size, in megabytes or kilobytes.
Public methodStatic member FormatStringWithListType(String, SPList) Format a string by inserting the name that corresponds to a list’s SPBaseType.
Public methodStatic member FormatStringWithListType(String, SPList, Boolean) Format a string by inserting the name that corresponds to a list’s SPBaseType, optionally converting the type name to lowercase.
Public methodStatic member GetAcceptHeaderExtensions Returns the set of accept headers associated with file extensions defined in the configuration file for a site.
Public methodStatic member GetAccountName Retrieves an account name, without provider information, given the full username associated with the account.
Public methodStatic member GetAllAuthenticatedUsers
Public methodStatic member GetAppLicenseDeploymentId Returns the deployment ID for the SharePoint deployment.
Public methodStatic member GetAppLicenseInformation Returns a collection of all the app licenses assigned to the current user for the specified app for SharePoint in the given SharePoint deployment.
Public methodStatic member GetBinaryUserId Returns the binary identifier of the membership account.
Public methodStatic member GetCalendarYearMax Returns the maximum year that can be represented in calendars.
Public methodStatic member GetCalendarYearMin Returns the minimum year that can be represented in calendars.
Public methodStatic member GetControlTemplatesFolder return versioned controlTemplates folder for the specified web. return "_controltemplates/site.CompatibilityLevel" if site.CompatibilityLevel >= 15 otherwise, return "_controltemplates" (when CompatibilityLevel is 14)
Public methodStatic member GetCurrentGenericSetupPath
Public methodStatic member GetCurrentUserEmailAddresses Returns a string containing the email address of the current user.
Public methodStatic member GetDefaultCompatibilityLevel
Public methodStatic member GetDisplayUserName
Public methodStatic member GetExampleDateFormat Returns an example of the format that is used for dates in the specified site.
Public methodStatic member GetExpandedWeeks
Public methodStatic member GetFullNameandEmailfromLogin(SPGlobalAdmin, String, String, String) Returns the display name and the e-mail address of the user on a server or server farm with the specified user name.
Public methodStatic member GetFullNameandEmailfromLogin(SPWeb, String, String, String) Returns the display name and the e-mail address of the Web-site user who has the specified user name.
Public methodStatic member GetFullNameFromLogin(SPGlobalAdmin, String) Returns the display name of the user on a server or server farm with the specified user name.
Public methodStatic member GetFullNameFromLogin(SPSite, String) Returns the display name of the site user who has the specified user name.
Public methodStatic member GetFullNameFromLoginEx(String, Boolean) Returns the display name of a user with the specified user name and a Boolean value indicating whether the user object represents a distribution list.
Public methodStatic member GetFullNameFromLoginEx(SPSite, String, Boolean) Returns the display name of a user on the specified site based on the user name and a Boolean value indicating whether the user object represents a distribution list.
Public methodStatic member GetFullUrl Returns the absolute Universal Resource Locator (URL) for the specified server-relative URL.
Public methodStatic member GetGenericSetupPath Obsolete. Retrieves the full local path for the specified subdirectory.
Public methodStatic member GetGuidFromShortGuid This method is used to decode the "base64url" encoded string (see http://tools.ietf.org/html/rfc4648) back to a normal GUID.
Public methodStatic member GetHtmlTranslateUrlFromExt Returns the Universal Resource Locator (URL) of a back-end converter program that is used to handle a request when the client computer does not have the Microsoft Office application installed.
Public methodStatic member GetIdentifierFromEmail Obsolete. Returns the identifier (ID) of the site user based on the specified e-mail address.
Public methodStatic member GetImageUrlWithRevision
Public methodStatic member GetIncorrectUIVersionMessage Retrieves a localized string that contains the generic error message to display when a Web Part is added to a site with an incompatible user interface (UI) version.
Public methodStatic member GetLayoutsFolder(SPSite) Returns the versioned layouts folder for the specified site collection.
Public methodStatic member GetLayoutsFolder(SPWeb) Returns a versioned layouts folder for the specified site.
Public methodStatic member GetListGuid Obsolete. Given a string with the list's ID or it's display name, will return the corresponding ID as a GUID for the list in the specified web.
Public methodStatic member GetLocalizedString Retrieves the value for a named resource string from the resource file for a specified language.
Public methodStatic member GetLoginNameFromEmail Obsolete. Returns the domain user account of the user based on the specified site collection and e-mail address.
Public methodStatic member GetMarketplaceServiceUrl Returns the URL to the SharePoint Store.
Public methodStatic member GetMasterPageOverride If applicable, gets the master page override URL on the current HttpRequest. If one is not specified, return null.
Public methodStatic member GetMimeTypeFromExtension
Public methodStatic member GetNewIdPrefix
Public methodStatic member GetNonAdminGlobalSettings
Public methodStatic member GetNTFullNameandEmailfromLogin(SPGlobalAdmin, String, String, String) Retrieves the display name and e-mail address that are used in the Windows NT operating system for a specified user on the server or server farm.
Public methodStatic member GetNTFullNameandEmailfromLogin(SPWeb, String, String, String) Retrieves the display name and e-mail address that are used in the Windows NT operating system for a user on the specified site.
Public methodStatic member GetOfficeStoreAppsDefaultActivation Indicates if Apps for Office from the marketplace should be activated.
Public methodStatic member GetPageUrlPath Returns the URL to a page in a specified HTTP context.
Public methodStatic member GetParentControl Returns the control that is the parent of a specified control.
Public methodStatic member GetPeoplePickerURL
Public methodStatic member GetPrincipalsInGroup Gets users or groups that belong to the specified group. The specified group can be a Microsoft Windows security group, an ASP.NET role, or a SharePoint group.
Public methodStatic member GetProviderName Returns the membership provider portion of a full user name.
Public methodStatic member GetRequestAccess Obsolete. Returns a Boolean value that indicates whether the current user has access to the specified site or list.
Public methodStatic member GetRoleDefinitionFromLegacyWebGroupId Gets the role definition for the web group with the specified ID from the specified collection of role definitions.
Public methodStatic member GetSelectedDate Retrieves the CalendarDate parameter value from the request context.
Public methodStatic member GetSelectedDateFromSource Retrieves the CalendarDate parameter value from the request context, optionally using the source page if necessary.
Public methodStatic member GetSelectedTime Retrieves the CalendarTime parameter value from the request context.
Public methodStatic member GetSelectedTimeFromSource Retrieves the CalendarTime parameter value from the request context, optionally using the source page if necessary.
Public methodStatic member GetServerFileRedirectForLinking
Public methodStatic member GetServerNow Returns in Coordinated Universal Time (UTC) the current date and time used on the database server for the specified site.
Public methodStatic member GetServerRelativeUrlFromPrefixedUrl Converts a URL prefixed with "~site/" or "~sitecollection/" into a server-relative URL.
Public methodStatic member GetShortGuid This method is used to encode a shorter "Guid" string using bases64url format (see http://tools.ietf.org/html/rfc4648).
Public methodStatic member GetShortId
Public methodStatic member GetSPListFromName(SPWeb, Guid, String, String, String) Retrieves the specified SharePoint list without specifying the associated SPContext object.
Public methodStatic member GetSPListFromName(SPContext, SPWeb, Guid, String, String, String) Retrieves the specified SharePoint list.
Public methodStatic member GetThemedImageUrl Gets the path to the themed version of an image, if applicable. If the current web is not themed or there is no context web, the original URL is returned. Furthermore, if originalUrl or themeKey is null or empty, the originalUrl is always returned.
Public methodStatic member GetTimeSpanFromTimeZone Retrieves a TimeSpan object that represents the difference in time between Coordinated Universal Time (UTC) and the time zone that is local to the SharePoint Web site.
Public methodStatic member GetTopEntitlement Among a collection of licenses for the same app, finds the most prevailing one.
Public methodStatic member GetUploadedSolutionOp Retrieves the solution operation (op) code for a newly uploaded solution.
Public methodStatic member GetUrlDirectory Returns the directory-path part of the URL.
Public methodStatic member GetUrlFileName Returns the filename part of the URL.
Public methodStatic member GetUserKeyFromUserName Gets the user stable identifier, user key, from the userName.
Public methodStatic member GetV3SecurePassword Returns a secure string that contains the password for a process identity.
Public methodStatic member GetVersionedGenericSetupPath
Public methodStatic member GetVersionedLocalizedString15 Generates a localized form of a given xml fragment, given the appropriate LCID and default token file reference
Public methodStatic member GetViewType Retrieves one of the calendar parameters from the request context.
Public methodStatic member GetWebContentIndexingTimestamps
Public methodStatic member GetWebLayoutsFolder returns web.Url/_layouts/rmj/
Public methodStatic member GregorianISOToIntlISODate Converts the specified date from the International Organization for Standardization (ISO) Gregorian format to the ISO International format.
Public methodStatic member GuessLoginNameFromEmail Obsolete. Returns the domain user account of the user based on the specified e-mail address.
Public methodStatic member HandleAccessDenied Handles access denied exceptions.
Public methodStatic member HasSharedAccess Implementation of HasSharedAccess
Public methodStatic member HexStringToByteArray Converts a hex string like "0x1234abcd" to the byte array that it represents.
Public methodStatic member HexStringToLong Converts the specified hexadecimal value to a long value.
Public methodStatic member HtmlTransProgID
Public methodStatic member ImportAppLicense Imports the specified test license into the specified SharePoint deployment for app testing purposes.
Public methodStatic member IsBuiltInFieldDisallowingUniqueness Returns a Boolean value that indicates whether a field is one of the special system fields that are not allowed to have the EnforceUniqueValues property set to false.
Public methodStatic member IsClientValid Determines whether or not we should stop processing the current request.
Public methodStatic member IsCurrentUserSiteAuditor
Public methodStatic member IsDesignTimeRender Indicates whether the current request is run in a design-time context. Usually this is because a Web service call is made by a Microsoft SharePoint Foundation-compatible editor, for example Microsoft SharePoint Designer 2010.
Public methodStatic member IsEastAsia Determines whether the specified Locale ID (LCID) for the specified website is for an East Asia language.
Public methodStatic member IsEmailFollowLinkEnabled check if content following is enabled on a document library
Public methodStatic member IsEmailServerSet Returns a Boolean value that specifies whether an e-mail server has been set for the site.
Public methodStatic member IsInitialContentForStartPage Returns whether the content presently being loaded is the initial content for a start page.
Public methodStatic member IsLoginValid(SPGlobalAdmin, String) Uses the specified global administration object to determine whether the specified user name is valid.
Public methodStatic member IsLoginValid(SPSite, String) Uses the specified site collection to determine whether the specified user name is valid.
Public methodStatic member IsLoginValid(SPGlobalAdmin, String, Boolean) Uses the specified global administration object to determine whether the specified user name is valid and whether it corresponds to a user account.
Public methodStatic member IsRightToLeft Determines if the language specified by the locale identifier (LCID) is a right-to-left language.
Public methodStatic member IsSaveConflictException Determines whether the exception is a save conflict exception.
Public methodStatic member IsSearchRequest Determines whether the request comes from SharePoint Search.
Public methodStatic member IsSetupPathVersioned if strSubdir starts with "template\", but not "template\admin\" or "template\sql\", return true. else, return false.
Public methodStatic member IsUplevelBrowser Returns a Boolean value that indicates whether the version of the browser is later than Internet Explorer 5.0 or Netscape Navigator 6.0, based on the HTTP context of the request.
Public methodStatic member IsUserLicensedForEntityInContext Checks if the currently logged in user has the proper license to access the specified entity.
Public methodStatic member IsValidStringInput Determines whether the specified text is in a valid format as specified by a regular expression.
Public methodStatic member LocalizeWebPartGallery
Public methodStatic member LogCustomAppError Logs the specified custom error for the app instance.
Public methodStatic member LogCustomRemoteAppError Logs the specified custom error for the app instance.
Public methodStatic member MakeBrowserCacheSafeLayoutsUrl(String, Boolean) Returns a new URL that will not be cached by the browser when the associated file changes. The file name must be relative to the layouts directory in the file system. For example, if an URL contains "layouts/images" it is relative to the layouts directory but the images directory is not under the layouts directory in the file system and therefore it cannot be used with this method.
Public methodStatic member MakeBrowserCacheSafeLayoutsUrl(String, Boolean, Int32)
Public methodStatic member MakeBrowserCacheSafeScriptResourceUrl Generates a new URL that is safe for the browser to use to cache the resource content. If the resource content was changed on the server, the URL that this method retrieves is changed to ensure that the stale browser cache is not used.
Public methodStatic member MapToApp
Public methodStatic member MapToControl Returns the name of the control that can edit the specified file, including the website that contains the file and the ID of the program that created the file.
Public methodStatic member MapToIcon(SPWeb, String, String) Returns the name of the image file for the icon that is used to represent the specified file.
Public methodStatic member MapToIcon(SPWeb, String, String, IconSize) Returns the name of the image file for the icon that is used to represent the specified file.
Public methodStatic member MapToServerFileRedirect(SPWeb, String, String) Returns the redirection URL for the file.
Public methodStatic member MapToServerFileRedirect(SPWeb, String, String, Int32) Returns the redirection URL for the file or for its versions.
Public methodStatic member MapWebToIcon Maps a Web-site to a corresponding image and tooltip based on the template and configuration identifier for the site.
Public methodStatic member MapWebURLToVirtualServerURL Returns the absolute Universal Resource Locator (URL) for the virtual server that contains the specified site.
Public methodStatic member MarkDiscussionAsFeatured Given a discussion board topic, this function will elevate privileges and change the IsFeatured field of the discussion
Public methodStatic member ObjectToGuid Converts an object to a Guid structure.
Public methodStatic member ParseDate(SPWeb, String, SPDateFormat, Boolean) Creates a System.DateTime object from the specified strings containing date and time values.
Public methodStatic member ParseDate(SPWeb, String, String, Boolean) Creates a System.DateTime object from the specified strings containing date and time values.
Public methodStatic member ParseSqlType Obsolete. Converts the string representation of a SqlDbType enumeration value to a SqlDbType enumeration value.
Public methodStatic member ProvisionWikiPageHomePageWithSiteFeed Provision site home page with the SiteFeed webpart
Public methodStatic member RebaseUri Takes an old Url base, a new Url base and replaces old with new in the original URL.
Public methodStatic member Redirect(String, SPRedirectFlags, HttpContext) Handles the redirection of an HTTP request.
Public methodStatic member Redirect(String, SPRedirectFlags, HttpContext, String) Handles the redirection of an HTTP request. This method allows for the optional specification of an encoded query string to be added to the URL.
Public methodStatic member RedirectToErrorPage
Public methodStatic member RedirectValidate(String, SPWeb) Determines whether a URL is suitable for redirection by verifying that it is either relative or resides within the current Web server or portal server within the current Web application.
Public methodStatic member RedirectValidate(String, HttpContext) Determines whether a URL is suitable for redirection by verifying that it is either relative or resides within the current Web server or portal server.
Public methodStatic member RemoveRevisionFromImageUrl
Public methodStatic member ReplaceEmbeddedPrefixedUrlsWithServerRelativeUrls(String) Converts the specified relative URL with an embedded prefix to a server-relative URL and specifies the server URL.
Public methodStatic member ReplaceEmbeddedPrefixedUrlsWithServerRelativeUrls(String, Boolean) Converts the specified relative URL with an embedded prefix to a server-relative URL and optionally encodes the site prefix.
Public methodStatic member ResolvePrincipal(SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Boolean) Resolves principal information into an SPPrincipalInfo object.
Public methodStatic member ResolvePrincipal(SPWeb, String, SPPrincipalType, SPPrincipalSource, SPUserCollection, Boolean) Resolves principal information into an SPPrincipalInfo object.
Public methodStatic member ResolvePrincipal_Client
Public methodStatic member ResolveWindowsPrincipal(SPWebApplication, String, SPPrincipalType, Boolean) Resolves user information (such as email address or display name) into an SPPrincipalInfo object for Windows account.
Public methodStatic member ResolveWindowsPrincipal(SPWeb, SPWebApplication, String, SPPrincipalType, Boolean) Resolves user information (such as email address or display name) into an SPPrincipalInfo object for Windows account.
Public methodStatic member SearchPrincipals(SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Int32, Boolean)
Public methodStatic member SearchPrincipals(SPWeb, String, SPPrincipalType, SPPrincipalSource, SPUserCollection, Int32, Boolean)
Public methodStatic member SearchWindowsPrincipals
Public methodStatic member SendAccessDeniedHeader Requests a user name and password, and then opens the Error page for an access denied exception so that the user must request access to the site or list from the owner.
Public methodStatic member SendEmail(SPWeb, StringDictionary, String) Sends an e-mail message.
Public methodStatic member SendEmail(SPWeb, StringDictionary, String, Boolean) Sends the e-mail message to the specified address.
Public methodStatic member SendEmail(SPWeb, Boolean, Boolean, String, String, String) Sends an e-mail message.
Public methodStatic member SendEmail(SPWeb, Boolean, Boolean, String, String, String, Boolean) Sends the e-mail message to the specified address.
Public methodStatic member SendRequestAccessToOwner Sends a request for access in an e-mail message to the owner of the list or site.
Public methodStatic member SendUpgradeAvailableNotification Sends upgrade available emails to site administrators.
Public methodStatic member SetEmailFollowLinkEnabled set whether content following should be enabled on a document library
Public methodStatic member SetEventReceiverToSynchronous Set all registrations of the given event receiver to synchronous.
Public methodStatic member SetThreadCulture(SPWeb) Sets the thread and user interface (UI) culture based on the values of the LocaleId property and the PreferredDisplayLanguages property, respectively, for the current user. If the current user cannot be determined, the culture is set based on the value of the Locale property and language on the value of the Language property.
Public methodStatic member SetThreadCulture(CultureInfo, CultureInfo) Sets the thread and user interface (UI) culture, based upon the current culture of the thread and the current culture of the UI.
Public methodStatic member ShouldUpdateHomePageWithSiteFeed
Public methodStatic member StopRequestIfClientIsNotValid Stops processing the current request if the request is no longer valid.
Public methodStatic member StringToUInt64 Converts the specified text value to a 64-bit unsigned integer.
Public methodStatic member TestVss Obsolete. We needed this method in O12 to do VSS CIT. We no longer need it now because the VSS CIT does reflection to call the internal methods.
Public methodStatic member TimeDeltaAsString Returns the difference between two specified DateTime values as a string.
Public methodStatic member TransferToErrorPage(String) Transfers the request to a Microsoft SharePoint Foundation error page.
Public methodStatic member TransferToErrorPage(String, String, String) Transfers the request to a Microsoft SharePoint Foundation error page.
Public methodStatic member TransferToSuccessPage(String) Transfers the request to a Microsoft SharePoint Foundation success page.
Public methodStatic member TransferToSuccessPage(String, String, String, String) Transfers the request to a Microsoft SharePoint Foundation success page.
Public methodStatic member TransferToSuccessPage(String, String, String, String, String, Boolean) Perform a server transfer to the operation success page
Public methodStatic member TryGetLanguageAndRegionSettingsEditorUrl Helper method that will perform the following logic to get the language and region settings URL: If usersettingsprovider exists, is valid, and a user is supplied, get the URI form the provider. Else get the local site user regional settings page. This method encapsulates logic used in various locations throughout Sharepoint to get to a viable Language and Region editor.
Public methodStatic member TryGetStringFromBinaryUserId Tries to extract a string from the binary user identifier and returns it.
Public methodStatic member UnmarkDiscussionAsFeatured
Public methodStatic member UrlSubsumes A helper method that determines whether a URL subsumes the other and if so, returns an index
Public methodStatic member ValidateDatabaseConnectionString Obsolete. Validates the connection string for the content database or the configuration database.
Public methodStatic member ValidateFormDigest Validates the form digest control that is used in the current request.

Top

Fields

  Name Description
Public fieldStatic member AccessDeniedPage Contains the name of the “access denie”d page.
Public fieldStatic member AppPrincipalQueryParameter
Public fieldStatic member AppSourceRedirectPageName
Public fieldStatic member AppTitleQueryParameter
Public fieldStatic member AuthenticatePage Contains the name of the authenticate page.
Public fieldStatic member CompatibilityLevel15
Public fieldStatic member ConfirmationPageId Contains a query string parameter for the confirmation page ID.
Public fieldStatic member ConfirmationPageText Contains a query string parameter for the confirmation page text.
Public fieldStatic member CustomXslAttribute Contains a query string parameter for the custom XSL attribute.
Public fieldStatic member DEFAULT_ROOTWEB_MASTERPAGE_GALLERY_URL
Public fieldStatic member ErrorCorrelationId Contains a query string parameter for the ID of the error correlation.
Public fieldStatic member ErrorHelpKey Contains a query string parameter for the key of the error help.
Public fieldStatic member ErrorHelpLinkText Contains a query string parameter for the text of the error help link.
Public fieldStatic member ErrorID Contains a query string parameter for the ID of the error.
Public fieldStatic member ErrorIsDetailsShown
Public fieldStatic member ErrorLinkNavigateUrl Contains a query string parameter for the navigate URL of the error link.
Public fieldStatic member ErrorLinkTextID Contains a query string parameter for the text ID of the error link.
Public fieldStatic member ErrorPage Contains a query string parameter for the name of the error page.
Public fieldStatic member ErrorText Contains a query string parameter for the error text of the error link.
Public fieldStatic member ErrorTitle
Public fieldStatic member IEditableSiteMapProviderEditMode
Public fieldStatic member IEditableSiteMapProviderRequireDataRefresh
Public fieldStatic member IEditableSiteMapProviderStartingNodeUrl
Public fieldStatic member ImagesVersion
Public fieldStatic member ImagesVersionStr
Public fieldStatic member MaxLeafNameLength Indicates the maximum number of characters that can be used in the name of a file or folder.
Public fieldStatic member MaxUserAccountNameLength Contains the maximum length of the account name of the user.
Public fieldStatic member MaxUserLogonLength Contains the maximum length of the logon name of the user.
Public fieldStatic member PostSourceUriQueryParameter
Public fieldStatic member RequestHdrNoLinkOnErrPage Contains a query string parameter for the no links on the error page.
Public fieldStatic member SiteRelativeUrlPrefix The value of this string is ~sitecollection/.
Public fieldStatic member SourceQueryParameter
Public fieldStatic member strTRUE Contains a query string parameter to represent true.
Public fieldStatic member SuccessPage Contains the name of the success page.
Public fieldStatic member WebRelativeUrlPrefix The value of this string is ~site/.

Top

See also

Reference

SPUtility class

Microsoft.SharePoint.Utilities namespace