C# 클래스 SPCalendarRecurrenceExpander.CSharpExample.SharePointContext

Encapsulates all the information from SharePoint.
파일 보기 프로젝트 열기: ronnieholm/SPCalendarRecurrenceExpander 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
AccessTokenLifetimeTolerance System.TimeSpan
appOnlyAccessTokenForSPAppWeb DateTime>.Tuple
appOnlyAccessTokenForSPHost DateTime>.Tuple
userAccessTokenForSPAppWeb DateTime>.Tuple
userAccessTokenForSPHost DateTime>.Tuple

공개 메소드들

메소드 설명
CreateAppOnlyClientContextForSPAppWeb ( ) : ClientContext

Creates an app only ClientContext for the SharePoint app web.

CreateAppOnlyClientContextForSPHost ( ) : ClientContext

Creates app only ClientContext for the SharePoint host.

CreateUserClientContextForSPAppWeb ( ) : ClientContext

Creates a user ClientContext for the SharePoint app web.

CreateUserClientContextForSPHost ( ) : ClientContext

Creates a user ClientContext for the SharePoint host.

GetDatabaseConnectionString ( ) : string

Gets the database connection string from SharePoint for autohosted app.

GetSPHostUrl ( HttpRequest httpRequest ) : Uri

Gets the SharePoint host url from QueryString of the specified HTTP request.

GetSPHostUrl ( System.Web.HttpRequestBase httpRequest ) : Uri

Gets the SharePoint host url from QueryString of the specified HTTP request.

보호된 메소드들

메소드 설명
IsAccessTokenValid ( DateTime>.Tuple accessToken ) : bool

Determines if the specified access token is valid. It considers an access token as not valid if it is null, or it has expired.

SharePointContext ( Uri spHostUrl, Uri spAppWebUrl, string spLanguage, string spClientTag, string spProductNumber ) : Microsoft.IdentityModel.S2S.Protocols.OAuth2

Constructor.

비공개 메소드들

메소드 설명
CreateClientContext ( Uri spSiteUrl, string accessToken ) : ClientContext

Creates a ClientContext with the specified SharePoint site url and the access token.

메소드 상세

CreateAppOnlyClientContextForSPAppWeb() 공개 메소드

Creates an app only ClientContext for the SharePoint app web.
public CreateAppOnlyClientContextForSPAppWeb ( ) : ClientContext
리턴 ClientContext

CreateAppOnlyClientContextForSPHost() 공개 메소드

Creates app only ClientContext for the SharePoint host.
public CreateAppOnlyClientContextForSPHost ( ) : ClientContext
리턴 ClientContext

CreateUserClientContextForSPAppWeb() 공개 메소드

Creates a user ClientContext for the SharePoint app web.
public CreateUserClientContextForSPAppWeb ( ) : ClientContext
리턴 ClientContext

CreateUserClientContextForSPHost() 공개 메소드

Creates a user ClientContext for the SharePoint host.
public CreateUserClientContextForSPHost ( ) : ClientContext
리턴 ClientContext

GetDatabaseConnectionString() 공개 메소드

Gets the database connection string from SharePoint for autohosted app.
public GetDatabaseConnectionString ( ) : string
리턴 string

GetSPHostUrl() 공개 정적인 메소드

Gets the SharePoint host url from QueryString of the specified HTTP request.
public static GetSPHostUrl ( HttpRequest httpRequest ) : Uri
httpRequest HttpRequest The specified HTTP request.
리턴 System.Uri

GetSPHostUrl() 공개 정적인 메소드

Gets the SharePoint host url from QueryString of the specified HTTP request.
public static GetSPHostUrl ( System.Web.HttpRequestBase httpRequest ) : Uri
httpRequest System.Web.HttpRequestBase The specified HTTP request.
리턴 System.Uri

IsAccessTokenValid() 보호된 정적인 메소드

Determines if the specified access token is valid. It considers an access token as not valid if it is null, or it has expired.
protected static IsAccessTokenValid ( DateTime>.Tuple accessToken ) : bool
accessToken DateTime>.Tuple The access token to verify.
리턴 bool

SharePointContext() 보호된 메소드

Constructor.
protected SharePointContext ( Uri spHostUrl, Uri spAppWebUrl, string spLanguage, string spClientTag, string spProductNumber ) : Microsoft.IdentityModel.S2S.Protocols.OAuth2
spHostUrl System.Uri The SharePoint host url.
spAppWebUrl System.Uri The SharePoint app web url.
spLanguage string The SharePoint language.
spClientTag string The SharePoint client tag.
spProductNumber string The SharePoint product number.
리턴 Microsoft.IdentityModel.S2S.Protocols.OAuth2

프로퍼티 상세

AccessTokenLifetimeTolerance 보호되어 있는 정적으로 프로퍼티

protected static TimeSpan,System AccessTokenLifetimeTolerance
리턴 System.TimeSpan

appOnlyAccessTokenForSPAppWeb 보호되어 있는 프로퍼티

protected Tuple appOnlyAccessTokenForSPAppWeb
리턴 DateTime>.Tuple

appOnlyAccessTokenForSPHost 보호되어 있는 프로퍼티

protected Tuple appOnlyAccessTokenForSPHost
리턴 DateTime>.Tuple

userAccessTokenForSPAppWeb 보호되어 있는 프로퍼티

protected Tuple userAccessTokenForSPAppWeb
리턴 DateTime>.Tuple

userAccessTokenForSPHost 보호되어 있는 프로퍼티

protected Tuple userAccessTokenForSPHost
리턴 DateTime>.Tuple