AppManagerUpdatingStrategyUpdateApplicationAsync - метод

Осуществляет обновление приложения

Definition

Пространство имён: Tessa.UI.AppManager
Сборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
C#
public Task<bool> UpdateApplicationAsync(
	IInstallationProcessMonitor monitor,
	string appManagerUpdatePath,
	CancellationToken cancellationToken = default
)

Параметры

monitor  IInstallationProcessMonitor
Монитор процесса установки приложения
appManagerUpdatePath  String
cancellationToken  CancellationToken  (Optional)
Объект, посредством которого можно отменить асинхронную задачу.

Возвращаемое значение

TaskBoolean
The Boolean.

Реализации

IAppManagerUpdatingStrategyUpdateApplicationAsync(IInstallationProcessMonitor, String, CancellationToken)

Исключения

Exception A delegate callback throws an exception.
IOException A file with the same name and location specified by exists.-or-The directory specified by is read-only, or is false and is not an empty directory. -or-The directory is the application's current working directory. -or-The directory contains a read-only file.-or-The directory is being used by another process.There is an open handle on the directory or on one of its files, and the operating system is Windows XP or earlier. This open handle can result from enumerating directories and files. For more information, see How to: Enumerate Directories and Files.
UnauthorizedAccessException The caller does not have the required permission.
DirectoryNotFoundException path does not exist or could not be found.-or-refers to a file instead of a directory.-or-The specified path is invalid (for example, it is on an unmapped drive).
ArgumentException is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.
ObjectDisposedException The Task has been disposed.
AggregateException The Task was canceled -or- an exception was thrown during the execution of the Task. If the task was canceled, the AggregateException contains an OperationCanceledException in its InnerExceptions collection.

См. также