ClientContext 成员
表示 SharePoint 对象和操作的上下文。
ClientContext 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
ClientContext(String) | 初始化ClientContext类具有指定绝对 URL 的 SharePoint 网站的新实例。 | |
ClientContext(Uri) | 初始化网站上并带有指定的Uri对象的ClientContext类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
ApplicationName | Gets or sets the name of the runtime where the current client application is located. (从 ClientRuntimeContext 继承。) | |
AuthenticationMode | Gets or sets the authentication mode for the client context. (从 ClientRuntimeContext 继承。) | |
ClientTag | Gets or sets the client tag that is sent to server in the HTTP header. (从 ClientRuntimeContext 继承。) | |
Credentials | Gets or sets the authentication information for the client context. (从 ClientRuntimeContext 继承。) | |
Current | ||
DisableReturnValueCache | (从 ClientRuntimeContext 继承。) | |
FormDigestHandlingEnabled | 确定窗体摘要处理启用并具有true默认值。 | |
FormsAuthenticationLoginInfo | Gets or sets the login information for the forms authentication mode of the client context. (从 ClientRuntimeContext 继承。) | |
HasPendingRequest | Gets the flag that indicates whether the client context has the ClientRequest to be sent to the server. (从 ClientRuntimeContext 继承。) | |
PendingRequest | Gets the ClientRequest object that is sent to the server when the next ExecuteQuery is executed. (从 ClientRuntimeContext 继承。) | |
RequestResources | ||
RequestSchemaVersion | Gets of sets the schema version of the request. (从 ClientRuntimeContext 继承。) | |
RequestTimeout | Gets or sets the requested time-out value in milliseconds. (从 ClientRuntimeContext 继承。) | |
ServerLibraryVersion | Gets the build version of Microsoft.SharePoint.Client.ServerRuntime.dll on the server. (从 ClientRuntimeContext 继承。) | |
ServerSchemaVersion | Gets the schema version of Microsoft.SharePoint.Client.ServerRuntime.dll on the server. (从 ClientRuntimeContext 继承。) | |
ServerVersion | 获取当前SharePoint Server的版本。 | |
ServiceRelativeUrl | (从 ClientRuntimeContext 继承。) | |
Site | 获取按当前用户的活动源,并可选择按关注的用户和内容或按用户的组织获取活动源。 | |
StaticObjects | 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientRuntimeContext 继承。) | |
Tag | Gets or sets the object that stores custom data about the client context. (从 ClientRuntimeContext 继承。) | |
TraceCorrelationId | Gets or sets the trace correlation ID used by the server. (从 ClientRuntimeContext 继承。) | |
Url | Gets the URL associated with the runtime context. (从 ClientRuntimeContext 继承。) | |
ValidateOnClient | Gets or sets the flag that indicates whether the client library needs to validate the method parameters on the client side. (从 ClientRuntimeContext 继承。) | |
Web | 返回可供网站使用的网站模板的集合。 | |
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. (从 ClientRuntimeContext 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
AddQuery | 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientRuntimeContext 继承。) | |
AddQueryIdAndResultObject | 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientRuntimeContext 继承。) | |
CastTo<T> | Casts a specified client object to its derived type. (从 ClientRuntimeContext 继承。) | |
Dispose() | Disposes of the runtime context. (从 ClientRuntimeContext 继承。) | |
Dispose(Boolean) | Disposes of the runtime context depending on the specified Boolean value. (从 ClientRuntimeContext 继承。) | |
ExecuteQuery | 执行数据检索查询和方法调用的当前设置。 (覆盖 ClientRuntimeContext.ExecuteQuery()。) | |
ExecuteQueryAsync | (覆盖 ClientRuntimeContext.ExecuteQueryAsync(ClientRequestSucceededEventHandler, ClientRequestFailedEventHandler)。) | |
GetFormDigestDirect | 直接从服务器获取表单摘要信息。 | |
Load<T> | (从 ClientRuntimeContext 继承。) | |
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. (从 ClientRuntimeContext 继承。) | |
LoadQuery<T>(ClientObjectCollection<T>) | Retrieves an enumerable sequence of the child client objects from a collection. (从 ClientRuntimeContext 继承。) | |
OnExecutingWebRequest | Raises the ExecutingWebRequest event. (从 ClientRuntimeContext 继承。) | |
ParseObjectFromJsonString | Parses the specified JavaScript 对象表示法 (JSON) string and gets an object from it. (从 ClientRuntimeContext 继承。) | |
ToString | (从 Object 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
ExecutingWebRequest | An event that is raised when the web request is sent to the server. (从 ClientRuntimeContext 继承。) |
页首