ClientRuntimeContext 成员

包括受保护的成员
包括继承的成员

Represents the runtime context for accessing data from remote objects, and invoking methods on remote objects.

ClientRuntimeContext 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 ClientRuntimeContext Initializes a new instance of the ClientRuntimeContext class with the specified absolute URL.

页首

属性

  名称 说明
公共属性 ApplicationName Gets or sets the name of the runtime where the current client application is located.
公共属性 AuthenticationMode Gets or sets the authentication mode for the client context.
公共属性 ClientTag Gets or sets the client tag that is sent to server in the HTTP header.
公共属性 Credentials Gets or sets the authentication information for the client context.
公共属性 DisableReturnValueCache
公共属性 FormsAuthenticationLoginInfo Gets or sets the login information for the forms authentication mode of the client context.
公共属性 HasPendingRequest Gets the flag that indicates whether the client context has the ClientRequest to be sent to the server.
公共属性 PendingRequest Gets the ClientRequest object that is sent to the server when the next ExecuteQuery is executed.
公共属性 RequestSchemaVersion Gets of sets the schema version of the request.
公共属性 RequestTimeout Gets or sets the requested time-out value in milliseconds.
公共属性 ServerLibraryVersion Gets the build version of Microsoft.SharePoint.Client.ServerRuntime.dll on the server.
公共属性 ServerSchemaVersion Gets the schema version of Microsoft.SharePoint.Client.ServerRuntime.dll on the server.
受保护的属性 ServiceRelativeUrl
公共属性 StaticObjects 此成员仅供内部使用,不能直接在您的代码中使用。
公共属性 Tag Gets or sets the object that stores custom data about the client context.
公共属性 TraceCorrelationId Gets or sets the trace correlation ID used by the server.
公共属性 Url Gets the URL associated with the runtime context.
公共属性 ValidateOnClient Gets or sets the flag that indicates whether the client library needs to validate the method parameters on the client side.
公共属性 WebRequestExecutorFactory Gets or sets the factory to create the WebRequestExecutor that is used to send the request to and get the response from the server.

页首

方法

  名称 说明
公共方法静态成员 AddClientTypeAssembly Stores the client library type of the calling assembly.
公共方法 AddQuery 此成员仅供内部使用,不能直接在您的代码中使用。
公共方法 AddQueryIdAndResultObject 此成员仅供内部使用,不能直接在您的代码中使用。
公共方法 CastTo<T> Casts a specified client object to its derived type.
公共方法 Dispose() Disposes of the runtime context.
受保护的方法 Dispose(Boolean) Disposes of the runtime context depending on the specified Boolean value.
公共方法 ExecuteQuery Executes the current set of data retrieval queries and method invocations.
公共方法 ExecuteQueryAsync(ClientRequestSucceededEventHandler, ClientRequestFailedEventHandler)
受保护的方法 ExecuteQueryAsync(ClientRequest, ClientRequestSucceededEventHandler, ClientRequestFailedEventHandler)
公共方法 Load<T>
公共方法 LoadQuery<T>(IQueryable<T>) Retrieves an enumerable sequence of the child client objects from a collection that can be the query expression in LINQ syntax.
公共方法 LoadQuery<T>(ClientObjectCollection<T>) Retrieves an enumerable sequence of the child client objects from a collection.
受保护的方法 OnExecutingWebRequest Raises the ExecutingWebRequest event.
公共方法 ParseObjectFromJsonString Parses the specified JavaScript 对象表示法 (JSON) string and gets an object from it.
受保护的方法 SetPendingRequestToBeExecuted
公共方法静态成员 SetupRequestCredential Associates the authentication information with the specified request.
公共方法静态成员 SetupRequestCredentialForPhone
公共方法 ToString (从 Object 继承。)

页首

事件

  名称 说明
公共事件 ExecutingWebRequest An event that is raised when the web request is sent to the server.

页首

  名称 说明
公共域静态成员 AuthorizationHeader
公共域静态成员 UserAgentHeader

页首

另请参阅

引用

ClientRuntimeContext 类

Microsoft.SharePoint.Client 命名空间