Interface IAppManager<T>
App Admin features
Inherited Members
Namespace: PnP.Core.Admin.Model.SharePoint
Assembly: PnP.Core.Admin.dll
Syntax
public interface IAppManager<T> : IAppOperations where T : IApp
Type Parameters
T
|
App Admin features
public interface IAppManager<T> : IAppOperations where T : IApp
T
|
Get the SharePoint Apps Service Principal enabling you to approve/reject permissions requests
IServicePrincipal ServicePrincipal { get; }
IServicePrincipal
|
Uploads a file to the app catalog.
T Add(byte[] file, string fileName, bool overwrite = false)
System.Byte[]
file
A byte array containing the file. |
System.String
fileName
The filename (e.g. myapp.sppkg) of the file to upload. |
System.Boolean
overwrite
If true will overwrite an existing entry. |
T
An instance of the app. |
Uploads an app file to the app catalog.
T Add(string path, bool overwrite = false)
System.String
path
|
System.Boolean
overwrite
If true will overwrite an existing entry. |
T
An instance of the app. |
Uploads a file to the app catalog.
Task<T> AddAsync(byte[] file, string fileName, bool overwrite = false)
System.Byte[]
file
A byte array containing the file. |
System.String
fileName
The filename (e.g. myapp.sppkg) of the file to upload. |
System.Boolean
overwrite
If true will overwrite an existing entry. |
Task<T>
An instance of the app. |
Uploads an app file to the app catalog.
Task<T> AddAsync(string path, bool overwrite = false)
System.String
path
|
System.Boolean
overwrite
If true will overwrite an existing entry. |
Task<T>
An instance of the app. |
Gets all available apps from the app catalog.
IList<T> GetAvailable()
IList<T>
A collection of apps. |
Gets available app by it's unique id.
T GetAvailable(Guid id)
Guid
id
The unique id of the app. Notice that this is not the product id as listed in the app catalog. |
T
An instance of the app. |
Gets available app by it's title.
T GetAvailable(string title)
System.String
title
An app's title. |
T
An instance of the app. |
Gets all available apps from the app catalog.
Task<IList<T>> GetAvailableAsync()
Task<IList<T>>
A collection of apps. |
Gets available app by it's unique id.
Task<T> GetAvailableAsync(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<T>
An instance of the app. |
Gets available app by it's title.
Task<T> GetAvailableAsync(string title)
System.String
title
An app's title. |
Task<T>
An instance of the app. |