프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 ) : |
Gets the SharePoint host url from QueryString of the specified HTTP request.
|
|
GetSPHostUrl ( System.Web.HttpRequestBase httpRequest ) : |
Gets the SharePoint host url from QueryString of the specified HTTP request.
|
메소드 | 설명 | |
---|---|---|
IsAccessTokenValid ( DateTime>.Tuple |
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 ( |
Constructor.
|
메소드 | 설명 | |
---|---|---|
CreateClientContext ( |
Creates a ClientContext with the specified SharePoint site url and the access token.
|
public CreateAppOnlyClientContextForSPAppWeb ( ) : ClientContext | ||
리턴 | ClientContext |
public CreateAppOnlyClientContextForSPHost ( ) : ClientContext | ||
리턴 | ClientContext |
public CreateUserClientContextForSPAppWeb ( ) : ClientContext | ||
리턴 | ClientContext |
public CreateUserClientContextForSPHost ( ) : ClientContext | ||
리턴 | ClientContext |
public static GetSPHostUrl ( HttpRequest httpRequest ) : |
||
httpRequest | HttpRequest | The specified HTTP request. |
리턴 |
public static GetSPHostUrl ( System.Web.HttpRequestBase httpRequest ) : |
||
httpRequest | System.Web.HttpRequestBase | The specified HTTP request. |
리턴 |
protected static IsAccessTokenValid ( DateTime>.Tuple |
||
accessToken | DateTime>.Tuple | The access token to verify. |
리턴 | bool |
protected SharePointContext ( |
||
spHostUrl | The SharePoint host url. | |
spAppWebUrl | The SharePoint app web url. | |
spLanguage | string | The SharePoint language. |
spClientTag | string | The SharePoint client tag. |
spProductNumber | string | The SharePoint product number. |
리턴 | System |
protected static TimeSpan,System AccessTokenLifetimeTolerance | ||
리턴 | System.TimeSpan |
protected Tuple |
||
리턴 | DateTime>.Tuple |
protected Tuple |
||
리턴 | DateTime>.Tuple |
protected Tuple |
||
리턴 | DateTime>.Tuple |