Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the context for SharePoint objects and operations.
The ClientContext type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
ClientContext(String) | Initializes a new instance of the ClientContext class for the SharePoint site with the specified absolute URL. |
![]() |
ClientContext(Uri) | Initializes a new instance of the ClientContext class for the site with the specified Uri object. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
ApplicationName | Gets or sets the name of the runtime where the current client application is located. (Inherited from ClientRuntimeContext.) |
![]() |
AuthenticationMode | Gets or sets the authentication mode for the client context. (Inherited from ClientRuntimeContext.) |
![]() |
ClientTag | Gets or sets the client tag that is sent to server in the HTTP header. (Inherited from ClientRuntimeContext.) |
![]() |
Credentials | Gets or sets the authentication information for the client context. (Inherited from ClientRuntimeContext.) |
![]() |
DisableReturnValueCache | (Inherited from ClientRuntimeContext.) |
![]() |
FormDigestHandlingEnabled | Determines whether form digest handling is enabled and has a default value of true. |
![]() |
FormsAuthenticationLoginInfo | Gets or sets the login information for the forms authentication mode of the client context. (Inherited from ClientRuntimeContext.) |
![]() |
HasPendingRequest | Gets the flag that indicates whether the client context has the ClientRequest to be sent to the server. (Inherited from ClientRuntimeContext.) |
![]() |
PendingRequest | Gets the ClientRequest object that is sent to the server when the next ExecuteQuery is executed. (Inherited from ClientRuntimeContext.) |
![]() |
RequestResources | |
![]() |
RequestSchemaVersion | Gets of sets the schema version of the request. (Inherited from ClientRuntimeContext.) |
![]() |
RequestTimeout | Gets or sets the requested time-out value in milliseconds. (Inherited from ClientRuntimeContext.) |
![]() |
ServerLibraryVersion | Gets the build version of Microsoft.SharePoint.Client.ServerRuntime.dll on the server. (Inherited from ClientRuntimeContext.) |
![]() |
ServerSchemaVersion | Gets the schema version of Microsoft.SharePoint.Client.ServerRuntime.dll on the server. (Inherited from ClientRuntimeContext.) |
![]() |
ServerVersion | Gets the version of the current SharePoint Server. |
![]() |
ServiceRelativeUrl | (Inherited from ClientRuntimeContext.) |
![]() |
Site | Gets the site collection that is associated with the client context. |
![]() |
StaticObjects | This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientRuntimeContext.) |
![]() |
Tag | Gets or sets the object that stores custom data about the client context. (Inherited from ClientRuntimeContext.) |
![]() |
TraceCorrelationId | Gets or sets the trace correlation ID used by the server. (Inherited from ClientRuntimeContext.) |
![]() |
Url | Gets the URL associated with the runtime context. (Inherited from ClientRuntimeContext.) |
![]() |
ValidateOnClient | Gets or sets the flag that indicates whether the client library needs to validate the method parameters on the client side. (Inherited from ClientRuntimeContext.) |
![]() |
Web | Gets the website that is associated with the client context. |
![]() |
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. (Inherited from ClientRuntimeContext.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
AddQuery | This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientRuntimeContext.) |
![]() |
AddQueryIdAndResultObject | This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientRuntimeContext.) |
![]() |
CastTo<T> | Casts a specified client object to its derived type. (Inherited from ClientRuntimeContext.) |
![]() |
Dispose() | Disposes of the runtime context. (Inherited from ClientRuntimeContext.) |
![]() |
Dispose(Boolean) | Disposes of the runtime context depending on the specified Boolean value. (Inherited from ClientRuntimeContext.) |
![]() |
ExecuteQuery | Executes the current set of data retrieval queries and method invocations. (Overrides ClientRuntimeContext.ExecuteQuery().) |
![]() |
ExecuteQueryAsync | (Overrides ClientRuntimeContext.ExecuteQueryAsync().) |
![]() |
GetFormDigestDirect | Gets form digest information directly from a server. |
![]() |
Load<T> | (Inherited from 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. (Inherited from ClientRuntimeContext.) |
![]() |
LoadQuery<T>(ClientObjectCollection<T>) | Retrieves an enumerable sequence of the child client objects from a collection. (Inherited from ClientRuntimeContext.) |
![]() |
OnExecutingWebRequest | Raises the ExecutingWebRequest event. (Inherited from ClientRuntimeContext.) |
![]() |
ParseObjectFromJsonString | Parses the specified JavaScript Object Notation (JSON) string and gets an object from it. (Inherited from ClientRuntimeContext.) |
![]() |
ToString | (Inherited from Object.) |
Top
Events
| Name | Description | |
|---|---|---|
![]() |
ExecutingWebRequest | An event that is raised when the web request is sent to the server. (Inherited from ClientRuntimeContext.) |
Top
.gif)
.gif)
.gif)
.gif)
.gif)