Interface ITenantAppManager
Represents an interface to work with Application Lifecycle Management (ALM) for the tenant app catalog.
Assembly: PnP.Core.Admin.dll
Syntax
public interface ITenantAppManager : IAppManager<ITenantApp>, IAppOperations
Methods
Uploads SharePoint Store app to the tenant app catalog and deploys it.
Declaration
ITenantApp AddAndDeployStoreApp(string storeAssetId, string cultureName, bool skipFeatureDeployment = true, bool overwrite = true)
Parameters
|
System.String
storeAssetId
A unique store asset id. If you open the SharePoint Store app's home page, the url will be ...appStore.aspx/appDetail/WA200001111. The last part WA200001111 will be your store asset id.
|
|
System.String
cultureName
4-letters culture name, i.e. "en-us", "de-de", etc.
|
|
System.Boolean
skipFeatureDeployment
If set to true will skip the feature deployment and will install the app globally.
|
|
System.Boolean
overwrite
Whether to overwrite if the app is already exisits in the tenant app catalog.
|
Returns
Uploads SharePoint Store app to the tenant app catalog and deploys it.
Declaration
Task<ITenantApp> AddAndDeployStoreAppAsync(string storeAssetId, string cultureName, bool skipFeatureDeployment = true, bool overwrite = true)
Parameters
|
System.String
storeAssetId
A unique store asset id. If you open the SharePoint Store app's home page, the url will be ...appStore.aspx/appDetail/WA200001111. The last part WA200001111 will be your store asset id.
|
|
System.String
cultureName
4-letters culture name, i.e. "en-us", "de-de", etc.
|
|
System.Boolean
skipFeatureDeployment
If set to true will skip the feature deployment and will install the app globally.
|
|
System.Boolean
overwrite
Whether to overwrite if the app is already exisits in the tenant app catalog.
|
Returns
Add a site collection app catalogs to the site collection.
Declaration
void AddSiteCollectionAppCatalog(Uri siteCollectionAbsoluteUri, VanityUrlOptions vanityUrlOptions = null)
Parameters
|
Uri
siteCollectionAbsoluteUri
Fully qualified url of the site collection to add the app catalog to
|
|
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant
|
Add a site collection app catalogs to the site collection.
Declaration
Task AddSiteCollectionAppCatalogAsync(Uri siteCollectionAbsoluteUri, VanityUrlOptions vanityUrlOptions = null)
Parameters
|
Uri
siteCollectionAbsoluteUri
Fully qualified url of the site collection to add the app catalog to
|
|
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant
|
Returns
Downloads MS Teams package from SPFx solution as a stream. You can save the stream to a file with a .zip extension later on.
Declaration
Stream DownloadTeamsSolution(Guid id)
Parameters
|
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog.
|
Returns
|
Stream
with the MS Teams binary package.
|
Downloads MS Teams package from SPFx solution as a stream. You can save the stream to a file with a .zip extension later on.
Declaration
Stream DownloadTeamsSolution(int id)
Parameters
|
System.Int32
id
List item id of the app in the AppCatalog list.
|
Returns
|
Stream
with the MS Teams binary package.
|
Downloads MS Teams package from SPFx solution as a stream. You can save the stream to a file with a .zip extension later on.
Declaration
Task<Stream> DownloadTeamsSolutionAsync(Guid id)
Parameters
|
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog.
|
Returns
|
Task<Stream>
with the MS Teams binary package.
|
Downloads MS Teams package from SPFx solution as a stream. You can save the stream to a file with a .zip extension later on.
Declaration
Task<Stream> DownloadTeamsSolutionAsync(int id)
Parameters
|
System.Int32
id
List item id of the app in the AppCatalog list.
|
Returns
|
Task<Stream>
with the MS Teams binary package.
|
Ensures a site collection app catalogs exists for provided site collection.
Declaration
void EnsureSiteCollectionAppCatalog(Uri siteCollectionAbsoluteUri, VanityUrlOptions vanityUrlOptions = null)
Parameters
|
Uri
siteCollectionAbsoluteUri
Fully qualified url of the site collection to ensure the app catalog exists for
|
|
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant
|
Ensures a site collection app catalogs exists for provided site collection.
Declaration
Task EnsureSiteCollectionAppCatalogAsync(Uri siteCollectionAbsoluteUri, VanityUrlOptions vanityUrlOptions = null)
Parameters
|
Uri
siteCollectionAbsoluteUri
Fully qualified url of the site collection to ensure the app catalog exists for
|
|
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant
|
Returns
Ensures there's a tenant app catalog, if not present it will be created.
Declaration
bool EnsureTenantAppCatalog()
Returns
|
System.Boolean
True if the app catalog was created, false if the app catalog already existed.
|
Ensures there's a tenant app catalog, if not present it will be created.
Declaration
Task<bool> EnsureTenantAppCatalogAsync()
Returns
|
Task<System.Boolean>
True if the app catalog was created, false if the app catalog already existed.
|
Returns a list of site collection app catalogs in the tenant.
Declaration
IList<IAppCatalogSite> GetSiteCollectionAppCatalogs()
Returns
Returns a list of site collection app catalogs in the tenant.
Declaration
Task<IList<IAppCatalogSite>> GetSiteCollectionAppCatalogsAsync()
Returns
A list of apps, added to the tenant from the SharePoint Store.
Declaration
IList<ITenantApp> GetStoreApps()
Returns
A list of apps, added to the tenant from the SharePoint Store.
Declaration
Task<IList<ITenantApp>> GetStoreAppsAsync()
Returns
Returns the URI of the current tenant app catalog.
Declaration
Uri GetTenantAppCatalogUri()
Returns
Returns the URI of the current tenant app catalog.
Declaration
Task<Uri> GetTenantAppCatalogUriAsync()
Returns
Indicates whether the upgrade is available for the specific app on a site.
Declaration
bool IsAppUpgradeAvailable(Guid id)
Parameters
|
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog.
|
Returns
|
System.Boolean
true if update is available.
|
Indicates whether the upgrade is available for the specific app on a site.
Declaration
bool IsAppUpgradeAvailable(int id)
Parameters
|
System.Int32
id
List item id of the app in the AppCatalog list.
|
Returns
|
System.Boolean
true if update is available.
|
Indicates whether the upgrade is available for the specific app on a site.
Declaration
Task<bool> IsAppUpgradeAvailableAsync(Guid id)
Parameters
|
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog.
|
Returns
|
Task<System.Boolean>
true if update is available.
|
Indicates whether the upgrade is available for the specific app on a site.
Declaration
Task<bool> IsAppUpgradeAvailableAsync(int id)
Parameters
|
System.Int32
id
List item id of the app in the AppCatalog list.
|
Returns
|
Task<System.Boolean>
true if update is available.
|
Removes a site collection app catalog from a site collection.
Declaration
void RemoveSiteCollectionAppCatalog(Uri siteCollectionAbsoluteUri, VanityUrlOptions vanityUrlOptions = null)
Parameters
|
Uri
siteCollectionAbsoluteUri
Fully qualified url of the site collection to remove the app catalog for
|
|
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant
|
Removes a site collection app catalog from a site collection.
Declaration
Task RemoveSiteCollectionAppCatalogAsync(Uri siteCollectionAbsoluteUri, VanityUrlOptions vanityUrlOptions = null)
Parameters
|
Uri
siteCollectionAbsoluteUri
Fully qualified url of the site collection to remove the app catalog for
|
|
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant
|
Returns
Indicates whether a solution contains MS Teams component.
Declaration
bool SolutionContainsTeamsComponent(Guid id)
Parameters
|
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog.
|
Returns
|
System.Boolean
true if the solution contains teams component.
|
Indicates whether a solution contains MS Teams component.
Declaration
Task<bool> SolutionContainsTeamsComponentAsync(Guid id)
Parameters
|
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog.
|
Returns
|
Task<System.Boolean>
true if the solution contains teams component.
|