Interface IAppOperations
Interface for base app operations, like Deploy, Install, etc.
Namespace: PnP.Core.Admin.Model.SharePoint
Assembly: PnP.Core.Admin.dll
Syntax
public interface IAppOperations
  
Interface for base app operations, like Deploy, Install, etc.
public interface IAppOperations
  Approves all permissions requested by the app.
Task<IPermissionGrant2[]> ApproveAsync(string aadPermissions)
  | 
        System.String
        aadPermissions
         The requested AAD permissions, e.g.  | 
    
| 
        Task<IPermissionGrant2[]>
         
  | 
    
Deploys / trusts an app in the app catalog.
bool Deploy(Guid id, bool skipFeatureDeployment = true)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
        skipFeatureDeployment
         If set to true will skip the feature deployment for tenant scoped apps.  | 
    
| 
        System.Boolean
         true if deployment was successful.  | 
    
Deploys / trusts an app in the app catalog.
Task<bool> DeployAsync(Guid id, bool skipFeatureDeployment = true)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
        skipFeatureDeployment
         If set to true will skip the feature deployment for tenant scoped apps.  | 
    
| 
        Task<System.Boolean>
         true if deployment was successful.  | 
    
Installs the app from the app catalog in a site.
bool Install(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
         true if installation was successful.  | 
    
Installs the app from the app catalog in a site.
Task<bool> InstallAsync(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        Task<System.Boolean>
         true if installation was successful.  | 
    
Removes the app from the app catalog.
bool Remove(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
         true if remove was successful.  | 
    
Removes the app from the app catalog.
Task<bool> RemoveAsync(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        Task<System.Boolean>
         true if remove was successful.  | 
    
Retracts the app in the app catalog. Notice that this will not remove the app from the app catalog.
bool Retract(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
         true if retract was successful.  | 
    
Retracts the app in the app catalog. Notice that this will not remove the app from the app catalog.
Task<bool> RetractAsync(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        Task<System.Boolean>
         true if retract was successful.  | 
    
Uninstalls the app from a site.
bool Uninstall(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
         true if uninstall was successful.  | 
    
Uninstalls the app from a site.
Task<bool> UninstallAsync(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        Task<System.Boolean>
         true if uninstall was successful.  | 
    
Upgrades the app in a site.
bool Upgrade(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        System.Boolean
         true if upgrade was successful.  | 
    
Upgrades the app in a site.
Task<bool> UpgradeAsync(Guid id)
  | 
        Guid
        id
         The unique id of the app. Notice that this is not the product id as listed in the app catalog.  | 
    
| 
        Task<System.Boolean>
         true if upgrade was successful.  |