ApplicationCardSynchronizationStrategyCreateFileAsync - метод
Создает новый файл с параметрами и содержимым, заданными в content
Пространство имён: Tessa.UI.AppManager.SynchronizationСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public Task CreateFileAsync(
ApplicationPackageFileContent content,
CancellationToken cancellationToken = default
)
Public Function CreateFileAsync (
content As ApplicationPackageFileContent,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
virtual Task^ CreateFileAsync(
ApplicationPackageFileContent^ content,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract CreateFileAsync :
content : ApplicationPackageFileContent *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
override CreateFileAsync :
content : ApplicationPackageFileContent *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- content ApplicationPackageFileContent
-
Контент создаваемого файла
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskАсинхронная задача.
IApplicationSynchronizationStrategyCreateFileAsync(ApplicationPackageFileContent, CancellationToken) ArgumentException |
path contains one or more of the invalid characters defined in GetInvalidPathChars.
|
PathTooLongException |
The path parameter is longer than the system-defined maximum length.
|
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.
|
InvalidOperationException |
The initialization function tries to access
Value on this instance.
|
Exception |
A delegate callback throws an exception.
|
ValidationException |
Ошибка при добавлении файла.
|