ClientContextExtensions Class

Definition

Class that deals with cloning client context object, getting access token and validates server version

public static class ClientContextExtensions
type ClientContextExtensions = class
Public Module ClientContextExtensions
Inheritance
ClientContextExtensions

Methods

AliasExistsAsync(ClientContext, String)

Checks if an alias is already used for an office 365 group or not

Clone(ClientRuntimeContext, String, Dictionary<String,String>)

Clones a ClientContext object while "taking over" the security context of the existing ClientContext instance

Clone(ClientRuntimeContext, Uri, Dictionary<String,String>)

Clones a ClientContext object while "taking over" the security context of the existing ClientContext instance

CreateSiteAsync(ClientContext, CommunicationSiteCollectionCreationInformation)

BETA: Creates a Communication Site Collection

CreateSiteAsync(ClientContext, TeamSiteCollectionCreationInformation)

BETA: Creates a Team Site Collection

ExecuteQueryRetry(ClientRuntimeContext, Int32, Int32, String)

Executes the current set of data retrieval queries and method invocations and retries it if needed.

ExecuteQueryRetryAsync(ClientRuntimeContext, Int32, Int32, String)

Executes the current set of data retrieval queries and method invocations and retries it if needed using the Task Library.

GetAccessToken(ClientRuntimeContext)

Gets an access token from a ClientContext instance. Only works when using an add-in or app-only authentication flow.

GetRequestDigest(ClientContext)

Returns the request digest from the current session/site

GetSiteCollectionContext(ClientRuntimeContext)

Gets a site collection context for the passed web. This site collection client context uses the same credentials as the passed client context

GroupifySiteAsync(ClientContext, TeamSiteCollectionGroupifyInformation)

BETA: Groupifies a classic Team Site Collection

HasMinimalServerLibraryVersion(ClientRuntimeContext, String)

Checks the server library version of the context for a minimally required version

HasMinimalServerLibraryVersion(ClientRuntimeContext, Version)

Checks the server library version of the context for a minimally required version

IsAppOnly(ClientRuntimeContext)

Checks if the used ClientContext is app-only

PendingRequestCount(ClientRuntimeContext)

Returns the number of pending requests

Applies to