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