ApplicationCardSynchronizationStrategyDeleteFileAsync - метод |
Удаляет файл заданный в file
Пространство имён:
Tessa.UI.AppManager.Synchronization
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public Task DeleteFileAsync(
ApplicationPackageFile file,
CancellationToken cancellationToken = default
)
Public Function DeleteFileAsync (
file As ApplicationPackageFile,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
virtual Task^ DeleteFileAsync(
ApplicationPackageFile^ file,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract DeleteFileAsync :
file : ApplicationPackageFile *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
override DeleteFileAsync :
file : ApplicationPackageFile *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
Параметры
- file
- Тип: Tessa.Applications.PackageApplicationPackageFile
Описание удаляемого файла
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Объект, посредством которого можно отменить асинхронную задачу.
Возвращаемое значение
Тип:
TaskАсинхронная задача.
Реализации
IApplicationSynchronizationStrategyDeleteFileAsync(ApplicationPackageFile, CancellationToken)Исключения Исключение | Условие |
---|
InvalidOperationException |
The initialization function tries to access
Value on this instance.
|
MissingMemberException |
The LazyT instance is initialized to use the default
constructor of the type that is being lazily initialized, and that type does not have a public, parameterless
constructor.
|
MemberAccessException |
The LazyT instance is initialized to use the default
constructor of the type that is being lazily initialized, and permissions to access the constructor are missing.
|
См. также