Class ListCollection

Represents a collection of SP.List objects

Hierarchy

Index

Methods

Methods

public add(parameters: ListCreationInformation): List

Creates a new list or a document library.

Parameters

Returns

List

public addChild(obj: T in SP.ClientObjectCollection<T>)

Parameters

  • obj: T in SP.ClientObjectCollection<T>

public customFromJson(initValue: any): boolean

Parameters

  • initValue: any

Returns

boolean

public customFromJson(initValue: any): boolean

Parameters

  • initValue: any

Returns

boolean

public ensureSiteAssetsLibrary(): List

Gets a list that is the default asset location for images or other files, which the users upload to their wiki pages.

Returns

List

public ensureSitePagesLibrary(): List

Gets a list that is the default location for wiki pages.

Returns

List

public fromJson(obj: any)

Parameters

  • obj: any

public getById(id: Guid): List

Returns the list with the specified list identifier.

Parameters

Returns

List

public getById(id: string): List

Returns the list with the specified list identifier.

Parameters

  • id: string

Returns

List

public getByTitle(title: string): List

Returns the list with the specified title from the collection.

Parameters

  • title: string

Returns

List

public getEnumerator(): IEnumerator

Returns an enumerator that iterates through the collection.

Returns

IEnumerator

public getItemAtIndex(index: number): T in SP.ClientObjectCollection<T>

Parameters

  • index: number

Returns

T in SP.ClientObjectCollection<T>

public get_areItemsAvailable(): boolean

Returns

boolean

public get_context(): ClientRuntimeContext

Returns

ClientRuntimeContext

public get_context(): ClientRuntimeContext

Returns

ClientRuntimeContext

public get_count(): number

Returns number of items in the collection.

Returns

number

public get_data(): Array<T>

Returns

Array<T>

public get_item(index: number): List

Gets the list at the specified index in the collection.

Parameters

  • index: number

Returns

List

public get_objectVersion(): string

Returns

string

public get_objectVersion(): string

Returns

string

public get_path(): ObjectPath

Returns

ObjectPath

public get_path(): ObjectPath

Returns

ObjectPath

public get_serverObjectIsNull(): boolean

Returns

boolean

public get_serverObjectIsNull(): boolean

Returns

boolean

public get_typedObject(): ClientObject

Returns

ClientObject

public get_typedObject(): ClientObject

Returns

ClientObject

public isObjectPropertyInstantiated(propertyName: string): boolean

Parameters

  • propertyName: string

Returns

boolean

public isObjectPropertyInstantiated(propertyName: string): boolean

Parameters

  • propertyName: string

Returns

boolean

public isPropertyAvailable(propertyName: string): boolean

Parameters

  • propertyName: string

Returns

boolean

public isPropertyAvailable(propertyName: string): boolean

Parameters

  • propertyName: string

Returns

boolean

public itemAt(index: number): List

Gets the list at the specified index in the collection.

Parameters

  • index: number

Returns

List

public refreshLoad()

public refreshLoad()

public retrieve()

public retrieve(propertyNames: Array<string>)

Parameters

  • propertyNames: Array<string>

public retrieve()

public retrieve(propertyNames: Array<string>)

Parameters

  • propertyNames: Array<string>

public retrieveItems(): ClientObjectPrototype

Gets the data for all of the items in the collection.

Returns

ClientObjectPrototype

public set_objectVersion(value: string)

Parameters

  • value: string

public set_objectVersion(value: string)

Parameters

  • value: string