C# Класс Microsoft.SharePoint.Client.ClientContextExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
Clone ( this clientContext, Uri siteUrl ) : ClientContext

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

Clone ( this clientContext, string siteUrl ) : ClientContext

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

ExecuteQueryRetry ( this clientContext, int retryCount = 10, int delay = 500 ) : void

GetSiteCollectionContext ( this clientContext ) : ClientContext

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

HasMinimalServerLibraryVersion ( this clientContext, System.Version minimallyRequiredVersion ) : bool
HasMinimalServerLibraryVersion ( this clientContext, string minimallyRequiredVersion ) : bool

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

IsAppOnly ( this clientContext ) : bool

Checks if the used ClientContext is app-only

Приватные методы

Метод Описание
ExecuteQueryImplementation ( ClientRuntimeContext clientContext, int retryCount = 10, int delay = 500 ) : void
GetCallingPnPMethod ( ) : string

Описание методов

Clone() публичный статический Метод

Clones a ClientContext object while "taking over" the security context of the existing ClientContext instance
public static Clone ( this clientContext, Uri siteUrl ) : ClientContext
clientContext this ClientContext to be cloned
siteUrl System.Uri Site url to be used for cloned ClientContext
Результат ClientContext

Clone() публичный статический Метод

Clones a ClientContext object while "taking over" the security context of the existing ClientContext instance
public static Clone ( this clientContext, string siteUrl ) : ClientContext
clientContext this ClientContext to be cloned
siteUrl string Site url to be used for cloned ClientContext
Результат ClientContext

ExecuteQueryRetry() публичный статический Метод

public static ExecuteQueryRetry ( this clientContext, int retryCount = 10, int delay = 500 ) : void
clientContext this
retryCount int Number of times to retry the request
delay int Milliseconds to wait before retrying the request. The delay will be increased (doubled) every retry
Результат void

GetSiteCollectionContext() публичный статический Метод

Gets a site collection context for the passed web. This site collection client context uses the same credentials as the passed client context
public static GetSiteCollectionContext ( this clientContext ) : ClientContext
clientContext this Client context to take the credentials from
Результат ClientContext

HasMinimalServerLibraryVersion() публичный статический Метод

public static HasMinimalServerLibraryVersion ( this clientContext, System.Version minimallyRequiredVersion ) : bool
clientContext this
minimallyRequiredVersion System.Version
Результат bool

HasMinimalServerLibraryVersion() публичный статический Метод

Checks the server library version of the context for a minimally required version
public static HasMinimalServerLibraryVersion ( this clientContext, string minimallyRequiredVersion ) : bool
clientContext this
minimallyRequiredVersion string
Результат bool

IsAppOnly() публичный статический Метод

Checks if the used ClientContext is app-only
public static IsAppOnly ( this clientContext ) : bool
clientContext this The ClientContext to inspect
Результат bool