Utility 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 deployment.

The Utility type exposes the following members.

Methods

  Name Description
Public methodStatic member CreateEmailBodyForInvitation Creates the contents of the e-mail used to invite users to a document or resource in a site.
Public methodStatic member CreateNewDiscussion
Public methodStatic member CreateNewDiscussionReply
Public methodStatic member CreateWikiPageInContextWeb
Public methodStatic member FormatDateTime
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 GetCurrentUserEmailAddresses Returns the e-mail address and mobile e-mail address of the current user. When no mobile e-mail address is specified, returns only the e-mail address. Otherwise, returns the e-mail address and mobile e-mail address separated by a semi-colon.
Public methodStatic member GetLocalizedString
Public methodStatic member GetLowerCaseString
Public methodStatic member GetPeoplePickerURL
Public methodStatic member GetUserPermissionLevels
Public methodStatic member ImportAppLicense Imports the specified test license into the specified SharePoint deployment for app testing purposes.
Public methodStatic member IsEmailServerSet
Public methodStatic member IsUserLicensedForEntityInContext
Public methodStatic member LocalizeWebPartGallery
Public methodStatic member LogCustomAppError Reports custom errors from SharePoint-hosted components of SharePoint Add-ins.
Public methodStatic member LogCustomRemoteAppError Reports custom errors from remote components of cloud-hosted SharePoint Add-ins.
Public methodStatic member MarkDiscussionAsFeatured
Public methodStatic member ResolvePrincipal Returns information about a principal that matches the specified search criteria. If no matches are found, the server must return NULL.
Public methodStatic member SearchPrincipals Returns the collection of principals that partially or uniquely match the specified search criteria.
Public methodStatic member SendEmail
Public methodStatic member UnmarkDiscussionAsFeatured

Top

See also

Reference

Utility class

Microsoft.SharePoint.Client.Utilities namespace