共用方式為


SP.ClientRuntimeContext Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.ClientRuntimeContext class.

Methods

Name

Description

add_beginningRequest

Attaches a handler to the beginningrequest event in the list of event handlers for this SP.ClientRuntimeContext.

add_requestFailed

Attaches a handler to the failed event in the list of event handlers for this SP.ClientRuntimeContext.

add_requestSucceeded

Attaches a handler to the succeeded event in the list of event handlers for this SP.ClientRuntimeContext.

addQuery

This member is reserved for internal use and is not intended to be used directly from your code.

addQueryIdAndResultObject

This member is reserved for internal use and is not intended to be used directly from your code.

castTo

Casts a specified client object to its derived type.

ClientRuntimeContext

Initializes a new instance of the SP.ClientRuntimeContext Class with the specified absolute URL.

dispose

Disposes of the runtime context.

executeQueryAsync

Executes the current pending request asynchronously on the server.

load

Retrieves the properties of a client object from the server.

loadQuery

Retrieves an enumerable sequence of the child client objects from a collection.

parseObjectFromJsonString

Parses the specified JavaScript Object Notation (JSON) string and gets an object from it.

remove_beginningRequest

Removes an event handler for the beginningrequest event from the list of event handlers for this SP.ClientRuntimeContext.

remove_requestFailed

Removes an event handler for the failed event from the list of event handlers for this SP.ClientRuntimeContext.

remove_requestSucceeded

Removes an event handler for the succeeded event from the list of event handlers for this SP.ClientRuntimeContext.

Applies To

SP.ClientRuntimeContext Class

See Also

Reference

SP.ClientRuntimeContext Properties

SP Namespace