Export (0) Print
Expand All
Expand Minimize

SPUtility Methods

Windows SharePoint Services 3

The SPUtility type exposes the following members.

  NameDescription
Public method Static member AddDefaultWikiContent
Public method Static member AlternateServerUrlFromHttpRequestUrl Returns the outgoing Universal Resource Locator (URL) for the alternate request URL represented by the specified URI.
Public method Static member ChangeAccountPassword Changes an account password for the specified SharePoint site.
Public method Static member ConvertHtmlLinkToWikiLink
Public method Static member ConvertSPRightsToSPBasePermissions
Public method Static member ConvertWikiLinkToHtmlLink
Public method Static member CreateDateTimeFromISO8601DateTimeString
Public method Static member CreateDateTimeFromSqlString Converts the specified SQL string (in yyyymmdd hh:mm:ss format) to DateTime format.
Public method Static member CreateISO8601DateTimeFromSystemDateTime Converts a system DateTime value to ISO8601 DateTime format (yyyy-mm-ddThh:mm:ssZ).
Public method Static member CreateNewDiscussion
Public method Static member CreateNewDiscussionReply
Public method Static 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 method Static member CreateThreadIndex
Public method Static member DetermineRedirectUrl
Public method Static member DumpTypes
Public method Static member EnsureAuthentication()
Public method Static member EnsureAuthentication(SPWeb) Determines whether the current user is an authenticated user of 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 method Static member EnsureSessionCredentials Obsolete.
Public method Static 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 method Static member FormatAccountName(String)
Public method Static member FormatAccountName(String, String)
Public method Static member FormatDate Converts the specified date and time value to an SPDateFormat format.
Public method Static member FormatSize
Public method Static member FormatStringWithListType(String, SPList)
Public method Static member FormatStringWithListType(String, SPList, Boolean)
Public method Static member GetAcceptHeaderExtensions Returns the set of accept headers associated with file extensions defined in the configuration file for a site.
Public method Static member GetAccountName
Public method Static member GetAllAuthenticatedUsers
Public method Static member GetBinaryUserId
Public method Static member GetCalendarYearMax Returns the maximum year that can be represented in calendars.
Public method Static member GetCalendarYearMin Returns the minimum year that can be represented in calendars.
Public method Static member GetExampleDateFormat Returns an example of the format that is used for dates in the specified site.
Public method Static member GetExpandedWeeks
Public method Static member GetFullNameandEmailfromLogin(SPGlobalAdmin, String, String, String)
Public method Static member GetFullNameandEmailfromLogin(SPWeb, String, String, String)
Public method Static member GetFullNameFromLogin(SPGlobalAdmin, String) Returns the display name of the user on a server or server farm with the specified user name.
Public method Static member GetFullNameFromLogin(SPSite, String) Returns the display name of the site user who has the specified user name.
Public method Static member GetFullNameFromLoginEx(String, Boolean)
Public method Static 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 method Static member GetFullUrl Returns the absolute Universal Resource Locator (URL) for the specified server-relative URL.
Public method Static member GetGenericSetupPath Returns the full local path for the specified subdirectory.
Public method Static 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 method Static member GetIdentifierFromEmail Obsolete. Returns the identifier (ID) of the site user based on the specified e-mail address.
Public method Static member GetLocalizedString
Public method Static member GetLoginNameFromEmail Obsolete. Returns the domain user account of the user based on the specified site collection and e-mail address.
Public method Static member GetNewIdPrefix
Public method Static member GetNonAdminGlobalSettings
Public method Static member GetNTFullNameandEmailfromLogin(SPGlobalAdmin, String, String, String) Returns the display name and e-mail address that are used in Windows NT for a specified user on the server or server farm.
Public method Static member GetNTFullNameandEmailfromLogin(SPWeb, String, String, String) Returns the display name and e-mail address that are used in Windows NT for a user on the specified site.
Public method Static member GetPageUrlPath
Public method Static member GetParentControl
Public method Static member GetPrincipalsInGroup
Public method Static member GetProviderName
Public method Static member GetRequestAccess Obsolete. Returns a Boolean value that indicates whether the current user has access to the specified site or list.
Public method Static member GetRoleDefinitionFromLegacyWebGroupId
Public method Static member GetSelectedDate
Public method Static member GetSelectedDateFromSource
Public method Static member GetSelectedTime
Public method Static member GetSelectedTimeFromSource
Public method Static member GetServerNow Returns in Coordinated Universal Time (UTC) the current date and time used on the database server for the specified site.
Public method Static member GetServerRelativeUrlFromPrefixedUrl
Public method Static member GetShortId
Public method Static member GetTimeSpanFromTimeZone
Public method Static member GetUrlDirectory
Public method Static member GetUrlFileName
Public method Static member GetViewType
Public method Static member GetWebContentIndexingTimestamps
Public method Static member GregorianISOToIntlISODate Converts the specified date from the International Organization for Standardization (ISO) Gregorian format to the ISO International format.
Public method Static member GuessLoginNameFromEmail Obsolete. Returns the domain user account of the user based on the specified e-mail address.
Public method Static member HandleAccessDenied
Public method Static member HexStringToLong
Public method Static member HideTaiwan Checks whether the Taiwan calendar is hidden based on the specified Web site and locale ID.
Public method Static member IsClientValid
Public method Static member IsDesignTimeRender
Public method Static member IsEastAsia
Public method Static member IsEmailServerSet Returns a Boolean value that specifies whether an e-mail server has been set for the site.
Public method Static member IsLoginValid(SPGlobalAdmin, String) Uses the specified global administration object to determine whether the specified user name is valid.
Public method Static member IsLoginValid(SPSite, String) Uses the specified site collection to determine whether the specified user name is valid.
Public method Static 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 method Static member IsRightToLeft
Public method Static 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 method Static member IsValidStringInput
Public method Static member MakeBrowserCacheSafeLayoutsUrl
Public method Static member MapToControl
Public method Static member MapToIcon(SPWeb, String, String) Returns the name of the image file for the icon that is used to represent the specified file.
Public method Static member MapToIcon(SPWeb, String, String, IconSize)
Public method Static member MapToServerFileRedirect
Public method Static member MapWebToIcon
Public method Static member MapWebURLToVirtualServerURL Returns the absolute Universal Resource Locator (URL) for the virtual server that contains the specified site.
Public method Static member ParseDate(SPWeb, String, SPDateFormat, Boolean)
Public method Static member ParseDate(SPWeb, String, String, Boolean) Creates a System.DateTime object from the specified strings containing date and time values.
Public method Static member Redirect(String, SPRedirectFlags, HttpContext)
Public method Static member Redirect(String, SPRedirectFlags, HttpContext, String)
Public method Static member RedirectValidate(String, SPWeb)
Public method Static member RedirectValidate(String, HttpContext)
Public method Static member ResolvePrincipal(SPWeb, String, SPPrincipalType, SPPrincipalSource, SPUserCollection, Boolean)
Public method Static member ResolvePrincipal(SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Boolean)
Public method Static member ResolveWindowsPrincipal
Public method Static member SearchPrincipals(SPWeb, String, SPPrincipalType, SPPrincipalSource, SPUserCollection, Int32, Boolean)
Public method Static member SearchPrincipals(SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Int32, Boolean)
Public method Static member SearchWindowsPrincipals
Public method Static 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 method Static member SendEmail(SPWeb, StringDictionary, String) Sends the e-mail message to the specified address.
Public method Static member SendEmail(SPWeb, StringDictionary, String, Boolean) Sends the e-mail message to the specified address.
Public method Static member SendEmail(SPWeb, Boolean, Boolean, String, String, String) Sends the e-mail message to the specified address.
Public method Static member SendEmail(SPWeb, Boolean, Boolean, String, String, String, Boolean) Sends the e-mail message to the specified address.
Public method Static member SendRequestAccessToOwner Sends a request for access in an e-mail message to the owner of the list or site.
Public method Static member SetThreadCulture(SPWeb)
Public method Static member SetThreadCulture(CultureInfo, CultureInfo)
Public method Static member StopRequestIfClientIsNotValid
Public method Static member StringToUInt64
Public method Static member TestVss
Public method Static member TimeDeltaAsString Returns the difference between two specified DateTime values as a string.
Public method Static member TransferToErrorPage(String)
Public method Static member TransferToErrorPage(String, String, String)
Public method Static member TransferToSuccessPage(String)
Public method Static member TransferToSuccessPage(String, String, String, String)
Public method Static member ValidateDatabaseConnectionString Obsolete. Validates the connection string for the content database or the configuration database.
Public method Static member ValidateFormDigest Validates the form digest control that is used in the current request.
Top

Community Additions

ADD
Show:
© 2014 Microsoft