Property | Type | Description | |
---|---|---|---|
AccessTokenLifetimeTolerance | System.TimeSpan | ||
appOnlyAccessTokenForSPAppWeb | DateTime>.Tuple | ||
appOnlyAccessTokenForSPHost | DateTime>.Tuple | ||
userAccessTokenForSPAppWeb | DateTime>.Tuple | ||
userAccessTokenForSPHost | DateTime>.Tuple |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
CreateClientContext ( |
Creates a ClientContext with the specified SharePoint site url and the access token.
|
public CreateAppOnlyClientContextForSPAppWeb ( ) : ClientContext | ||
return | ClientContext |
public CreateAppOnlyClientContextForSPHost ( ) : ClientContext | ||
return | ClientContext |
public CreateUserClientContextForSPAppWeb ( ) : ClientContext | ||
return | ClientContext |
public CreateUserClientContextForSPHost ( ) : ClientContext | ||
return | ClientContext |
public GetDatabaseConnectionString ( ) : string | ||
return | string |
public static GetSPHostUrl ( HttpRequest httpRequest ) : |
||
httpRequest | HttpRequest | The specified HTTP request. |
return |
public static GetSPHostUrl ( System.Web.HttpRequestBase httpRequest ) : |
||
httpRequest | System.Web.HttpRequestBase | The specified HTTP request. |
return |
protected static IsAccessTokenValid ( DateTime>.Tuple |
||
accessToken | DateTime>.Tuple | The access token to verify. |
return | 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. |
return | System |
protected static TimeSpan,System AccessTokenLifetimeTolerance | ||
return | System.TimeSpan |
protected Tuple |
||
return | DateTime>.Tuple |
protected Tuple |
||
return | DateTime>.Tuple |
protected Tuple |
||
return | DateTime>.Tuple |