Class AppManager
Allows Application Lifecycle Management for Apps
Inheritance
Namespace: PnP.Framework.ALM
Assembly: PnP.Framework.dll
Syntax
public class AppManager : object
Constructors
AppManager(ClientContext)
Declaration
public AppManager(ClientContext context)
Parameters
Client
|
Methods
Add(Byte[], String, Boolean, AppCatalogScope, Int32)
Uploads a file to the Tenant App Catalog
Declaration
public AppMetadata Add(byte[] file, string filename, bool overwrite = false, AppCatalogScope scope = default(AppCatalogScope), int timeoutSeconds = 200)
Parameters
System. A byte array containing the file |
System. The filename (e.g. myapp.sppkg) of the file to upload |
System. If true will overwrite an existing entry |
App Specifies the app catalog to work with. Defaults to Tenant |
System. If specified will set the timeout on the request. Defaults to 200 seconds. |
Returns
Add(String, Boolean, AppCatalogScope, Int32)
Uploads an app file to the Tenant App Catalog
Declaration
public AppMetadata Add(string path, bool overwrite = false, AppCatalogScope scope = default(AppCatalogScope), int timeoutSeconds = 200)
Parameters
System.
|
System. If true will overwrite an existing entry |
App Specifies the app catalog to work with. Defaults to Tenant |
System. If specified will set the timeout on the request. Defaults to 200 seconds. |
Returns
AddAsync(Byte[], String, Boolean, AppCatalogScope, Int32)
Uploads a file to the Tenant App Catalog
Declaration
public async Task<AppMetadata> AddAsync(byte[] file, string filename, bool overwrite = false, AppCatalogScope scope = default(AppCatalogScope), int timeoutSeconds = 200)
Parameters
System. A byte array containing the file |
System. The filename (e.g. myapp.sppkg) of the file to upload |
System. If true will overwrite an existing entry |
App Specifies the app catalog to work with. Defaults to Tenant |
System. If specified will set the timeout on the request. Defaults to 200 seconds. |
Returns
Task<App
|
AddAsync(String, Boolean, AppCatalogScope, Int32)
Uploads an app file to the Tenant App Catalog
Declaration
public async Task<AppMetadata> AddAsync(string path, bool overwrite = false, AppCatalogScope scope = default(AppCatalogScope), int timeoutSeconds = 200)
Parameters
System.
|
System. If true will overwrite an existing entry |
App Specifies the app catalog to work with. Defaults to Tenant |
System. If specified will set the timeout on the request. Defaults to 200 seconds. |
Returns
Task<App
|
Deploy(Guid, Boolean, AppCatalogScope)
Deploys/trusts an app in the app catalog
Declaration
public bool Deploy(Guid id, bool skipFeatureDeployment = true, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
System. If set to true will skip the feature deployed for tenant scoped apps. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
Deploy(AppMetadata, Boolean, AppCatalogScope)
Deploys/trusts an app in the app catalog
Declaration
public bool Deploy(AppMetadata appMetadata, bool skipFeatureDeployment = true, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to deploy. |
System. If set to true will skip the feature deployed for tenant scoped apps. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
DeployAsync(Guid, Boolean, AppCatalogScope)
Deploys/trusts an app in the app catalog
Declaration
public async Task<bool> DeployAsync(Guid id, bool skipFeatureDeployment = true, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
System. If set to true will skip the feature deployed for tenant scoped apps. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
DeployAsync(AppMetadata, Boolean, AppCatalogScope)
Deploys/trusts an app in the app catalog
Declaration
public async Task<bool> DeployAsync(AppMetadata appMetadata, bool skipFeatureDeployment = true, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to deploy. |
System. If set to true will skip the feature deployed for tenant scoped apps. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
GetAvailable(Guid, AppCatalogScope)
Returns an available app
Declaration
public AppMetadata GetAvailable(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
GetAvailable(AppCatalogScope)
Returns all available apps.
Declaration
public List<AppMetadata> GetAvailable(AppCatalogScope scope = default(AppCatalogScope))
Parameters
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
List<App
|
GetAvailable(String, AppCatalogScope)
Returns an available app
Declaration
public AppMetadata GetAvailable(string title, AppCatalogScope scope = default(AppCatalogScope))
Parameters
System. The title of the app. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
GetAvailableAsync(Guid, AppCatalogScope)
Returns an available app
Declaration
public async Task<AppMetadata> GetAvailableAsync(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The id of the app |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<App
|
GetAvailableAsync(AppCatalogScope)
Returns all available apps.
Declaration
public async Task<List<AppMetadata>> GetAvailableAsync(AppCatalogScope scope = default(AppCatalogScope))
Parameters
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<List<App
|
GetAvailableAsync(String, AppCatalogScope)
Returns an avialable app
Declaration
public async Task<AppMetadata> GetAvailableAsync(string title, AppCatalogScope scope = default(AppCatalogScope))
Parameters
System. The title of the app. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<App
|
Install(Guid, AppCatalogScope)
Installs an available app from the app catalog in a site.
Declaration
public bool Install(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
Install(AppMetadata, AppCatalogScope)
Installs an available app from the app catalog in a site.
Declaration
public bool Install(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to install |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
InstallAsync(Guid, AppCatalogScope)
Installs an available app from the app catalog in a site.
Declaration
public async Task<bool> InstallAsync(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
InstallAsync(AppMetadata, AppCatalogScope)
Installs an available app from the app catalog in a site.
Declaration
public async Task<bool> InstallAsync(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to install |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
Remove(Guid, AppCatalogScope)
Removes an app from the app catalog
Declaration
public bool Remove(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
Remove(AppMetadata, AppCatalogScope)
Removes an app from the app catalog
Declaration
public bool Remove(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to remove. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
RemoveAsync(Guid, AppCatalogScope)
Removes an app from the app catalog
Declaration
public async Task<bool> RemoveAsync(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
RemoveAsync(AppMetadata, AppCatalogScope)
Removes an app from the app catalog
Declaration
public async Task<bool> RemoveAsync(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to remove. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
Retract(Guid, AppCatalogScope)
Retracts an app in the app catalog. Notice that this will not remove the app from the app catalog.
Declaration
public bool Retract(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
Retract(AppMetadata, AppCatalogScope)
Retracts an app in the app catalog. Notice that this will not remove the app from the app catalog.
Declaration
public bool Retract(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to retract. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
RetractAsync(Guid, AppCatalogScope)
Retracts an app in the app catalog. Notice that this will not remove the app from the app catalog.
Declaration
public async Task<bool> RetractAsync(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
RetractAsync(AppMetadata, AppCatalogScope)
Retracts an app in the app catalog. Notice that this will not remove the app from the app catalog.
Declaration
public async Task<bool> RetractAsync(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to retract. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
SyncToTeams(Guid)
Synchronize an app from the tenant app catalog with the teams app catalog
Declaration
public bool SyncToTeams(Guid id)
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listen in the app catalog |
Returns
System.
|
SyncToTeams(AppMetadata)
Synchronize an app from the tenant app catalog with the teams app catalog
Declaration
public bool SyncToTeams(AppMetadata appMetadata)
Parameters
App The app metadata object of the app to remove. |
Returns
System.
|
SyncToTeamsAsync(Guid)
Synchronize an app from the tenant app catalog with the teams app catalog
Declaration
public async Task<bool> SyncToTeamsAsync(Guid id)
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listen in the app catalog |
Returns
Task<System.
|
SyncToTeamsAsync(AppMetadata)
Synchronize an app from the tenant app catalog with the teams app catalog
Declaration
public async Task<bool> SyncToTeamsAsync(AppMetadata appMetadata)
Parameters
App The app metadata object of the app to remove. |
Returns
Task<System.
|
Uninstall(Guid, AppCatalogScope)
Uninstalls an app from a site.
Declaration
public bool Uninstall(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
Uninstall(AppMetadata, AppCatalogScope)
Uninstalls an app from a site.
Declaration
public bool Uninstall(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to uninstall. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
UninstallAsync(Guid, AppCatalogScope)
Uninstalls an app from a site.
Declaration
public async Task<bool> UninstallAsync(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
UninstallAsync(AppMetadata, AppCatalogScope)
Uninstalls an app from a site.
Declaration
public async Task<bool> UninstallAsync(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to uninstall. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
Upgrade(Guid, AppCatalogScope)
Upgrades an app in a site
Declaration
public bool Upgrade(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
Upgrade(AppMetadata, AppCatalogScope)
Upgrades an app in a site
Declaration
public bool Upgrade(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to upgrade. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
System.
|
UpgradeAsync(Guid, AppCatalogScope)
Upgrades an app in a site
Declaration
public async Task<bool> UpgradeAsync(Guid id, AppCatalogScope scope = default(AppCatalogScope))
Parameters
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|
UpgradeAsync(AppMetadata, AppCatalogScope)
Upgrades an app in a site
Declaration
public async Task<bool> UpgradeAsync(AppMetadata appMetadata, AppCatalogScope scope = default(AppCatalogScope))
Parameters
App The app metadata object of the app to upgrade. |
App Specifies the app catalog to work with. Defaults to Tenant |
Returns
Task<System.
|