Для изменения размера нажмите или перетащите

ViewFilePersistentWriteAsync - метод

Осуществляет запись моделей представлений в папку

Пространство имён:  Tessa.Views.Parser.Serialization
Сборка:  Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис
public Task WriteAsync(
	[NotNullAttribute] IEnumerable<TessaViewModel> models,
	[NotNullAttribute] string path,
	bool clearFolder = false,
	[CanBeNullAttribute] string userName = ""
)

Параметры

models
Тип: System.Collections.GenericIEnumerableTessaViewModel
Список записываемых моделей
path
Тип: SystemString
Путь к каталогу
clearFolder (Optional)
Тип: SystemBoolean
Признак необходимости очистки каталога path от файлов представлений
userName (Optional)
Тип: SystemString
Имя пользователя осуществляющего запись информации

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

Тип: Task
Исключения
ИсключениеУсловие
SecurityException The caller does not have the required permission.
FileNotFoundException The file cannot be found, such as when mode is FileMode.Truncate or FileMode.Open, and the file specified by path does not exist. The file must already exist in these modes.
IOException An I/O error, such as specifying FileMode.CreateNew when the file specified by path already exists, occurred.-or-The stream has been closed.
DirectoryNotFoundException The specified path is invalid, such as being on an unmapped drive.
ArgumentExceptionpath is an empty string (""), contains only white space, or contains one or more invalid characters. -or-path refers to a non-file device, such as "con:", "com1:", "lpt1:", etc. in an NTFS environment.
NotSupportedExceptionpath refers to a non-file device, such as "con:", "com1:", "lpt1:", etc. in a non-NTFS environment.
ArgumentNullExceptionpath is null.
PathTooLongException The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
ArgumentOutOfRangeException contains an invalid value.
См. также