Class Utility

Index

Properties

Methods

Properties

public lAYOUTS_LATESTVERSION_RELATIVE_URL: string

public lAYOUTS_LATESTVERSION_URL: string

Methods

public static createEmailBodyForInvitation(context: ClientRuntimeContext, pageAddress: string): StringResult

Parameters

Returns

StringResult

public static createNewDiscussion(context: ClientRuntimeContext, list: List, title: string): ListItem

Parameters

Returns

ListItem

public static createNewDiscussionReply(context: ClientRuntimeContext, parent: ListItem): ListItem

Parameters

Returns

ListItem

public static createWikiPageInContextWeb(context: ClientRuntimeContext, parameters: WikiPageCreationInformation): File

Parameters

Returns

File

public static formatDateTime(context: ClientRuntimeContext, web: Web, datetime: Date, format: DateTimeFormat): StringResult

Parameters

Returns

StringResult

public static getAppLicenseDeploymentId(context: ClientRuntimeContext): GuidResult

Parameters

Returns

GuidResult

public static getAppLicenseInformation(context: ClientRuntimeContext, productId: Guid): AppLicenseCollection

Parameters

Returns

AppLicenseCollection

public static getCurrentUserEmailAddresses(context: ClientRuntimeContext): StringResult

Parameters

Returns

StringResult

public static getImageUrl(imageName: string): string

Parameters

  • imageName: string

Returns

string

public static getLayoutsPageUrl(pageName: string): string

Parameters

  • pageName: string

Returns

string

public static getLocalizedString(context: ClientRuntimeContext, source: string, defaultResourceFile: string, language: number): StringResult

Parameters

Returns

StringResult

public static getLowerCaseString(context: ClientRuntimeContext, sourceValue: string, lcid: number): StringResult

Parameters

Returns

StringResult

public static getPeoplePickerURL(context: ClientRuntimeContext, web: Web, fieldUser: FieldUser): StringResult

Parameters

Returns

StringResult

public static get_layoutsLatestVersionRelativeUrl(): string

Returns

string

public static get_layoutsLatestVersionUrl(): string

Returns

string

public static importAppLicense(context: ClientRuntimeContext, licenseTokenToImport: string, contentMarket: string, billingMarket: string, appName: string, iconUrl: string, providerName: string, appSubtype: number)

Parameters

  • context: ClientRuntimeContext
  • licenseTokenToImport: string
  • contentMarket: string
  • billingMarket: string
  • appName: string
  • iconUrl: string
  • providerName: string
  • appSubtype: number

public static isUserLicensedForEntityInContext(context: ClientRuntimeContext, licensableEntity: string): BooleanResult

Parameters

Returns

BooleanResult

public static localizeWebPartGallery(context: ClientRuntimeContext, items: ListItemCollection): ClientObjectList

Parameters

Returns

ClientObjectList

public static logCustomAppError(context: ClientRuntimeContext, error: string): IntResult

Parameters

Returns

IntResult

public static logCustomRemoteAppError(context: ClientRuntimeContext, productId: Guid, error: string): IntResult

Parameters

Returns

IntResult

public static markDiscussionAsFeatured(context: ClientRuntimeContext, listID: string, topicIDs: string)

Parameters

public static resolvePrincipal(context: ClientRuntimeContext, web: Web, input: string, scopes: PrincipalType, sources: PrincipalSource, usersContainer: UserCollection, inputIsEmailOnly: boolean): PrincipalInfo

Parameters

Returns

PrincipalInfo

public static searchPrincipals(context: ClientRuntimeContext, web: Web, input: string, scopes: PrincipalType, sources: PrincipalSource, usersContainer: UserCollection, maxCount: number): PrincipalInfo[]

Parameters

Returns

PrincipalInfo[]

public static unmarkDiscussionAsFeatured(context: ClientRuntimeContext, listID: string, topicIDs: string)

Parameters