AppManagerUpdatingStrategyUpdateApplicationAsync - метод
Осуществляет обновление приложения
Пространство имён: Tessa.UI.AppManagerСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public Task<bool> UpdateApplicationAsync(
IInstallationProcessMonitor monitor,
string appManagerUpdatePath,
CancellationToken cancellationToken = default
)
Public Function UpdateApplicationAsync (
monitor As IInstallationProcessMonitor,
appManagerUpdatePath As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Boolean)
public:
virtual Task<bool>^ UpdateApplicationAsync(
IInstallationProcessMonitor^ monitor,
String^ appManagerUpdatePath,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract UpdateApplicationAsync :
monitor : IInstallationProcessMonitor *
appManagerUpdatePath : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
override UpdateApplicationAsync :
monitor : IInstallationProcessMonitor *
appManagerUpdatePath : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
- 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.
|