C# 클래스 Microsoft.SharePoint.Client.ClientContextExtensions

파일 보기 프로젝트 열기: OfficeDev/PnP-Sites-Core

공개 메소드들

메소드 설명
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