Свойство | Type | Description | |
---|---|---|---|
AccessTokenLifetimeTolerance | System.TimeSpan | ||
appOnlyAccessTokenForSPAppWeb | DateTime>.Tuple | ||
appOnlyAccessTokenForSPHost | DateTime>.Tuple | ||
userAccessTokenForSPAppWeb | DateTime>.Tuple | ||
userAccessTokenForSPHost | DateTime>.Tuple |
Méthode | 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.
|
Méthode | 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.
|
Méthode | Description | |
---|---|---|
CreateClientContext ( |
Creates a ClientContext with the specified SharePoint site url and the access token.
|
public CreateAppOnlyClientContextForSPAppWeb ( ) : ClientContext | ||
Résultat | ClientContext |
public CreateAppOnlyClientContextForSPHost ( ) : ClientContext | ||
Résultat | ClientContext |
public CreateUserClientContextForSPAppWeb ( ) : ClientContext | ||
Résultat | ClientContext |
public CreateUserClientContextForSPHost ( ) : ClientContext | ||
Résultat | ClientContext |
public GetDatabaseConnectionString ( ) : string | ||
Résultat | string |
public static GetSPHostUrl ( HttpRequest httpRequest ) : |
||
httpRequest | HttpRequest | The specified HTTP request. |
Résultat |
public static GetSPHostUrl ( System.Web.HttpRequestBase httpRequest ) : |
||
httpRequest | System.Web.HttpRequestBase | The specified HTTP request. |
Résultat |
protected static IsAccessTokenValid ( DateTime>.Tuple |
||
accessToken | DateTime>.Tuple | The access token to verify. |
Résultat | 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. |
Résultat | Microsoft.IdentityModel.S2S.Protocols.OAuth2 |
protected static TimeSpan,System AccessTokenLifetimeTolerance | ||
Résultat | System.TimeSpan |
protected Tuple |
||
Résultat | DateTime>.Tuple |
protected Tuple |
||
Résultat | DateTime>.Tuple |
protected Tuple |
||
Résultat | DateTime>.Tuple |