Click or drag to resize

BackupWriterCreate Method

Create the backup writer

Namespace: SanteDB.Core.Data.Backup
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public static BackupWriter Create(
	Stream underlyingStream,
	ICollection<IBackupAsset> assetsToWrite,
	string password = null,
	bool keepOpen = false
)

Parameters

underlyingStream  Stream
The stream to write the backup to
assetsToWrite  ICollectionIBackupAsset
The assets which should be written to the backup file
password  String  (Optional)
The password for the backup file
keepOpen  Boolean  (Optional)
True if the underlying stream should be kept open or disposed when the write is disposed

Return Value

BackupWriter
The backup writer
See Also