 | BackupWriterCreate Method |
Create the backup writer
Namespace: SanteDB.Core.Data.BackupAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic static BackupWriter Create(
Stream underlyingStream,
ICollection<IBackupAsset> assetsToWrite,
string password = null,
bool keepOpen = false
)
Public Shared Function Create (
underlyingStream As Stream,
assetsToWrite As ICollection(Of IBackupAsset),
Optional password As String = Nothing,
Optional keepOpen As Boolean = false
) As BackupWriter
public:
static BackupWriter^ Create(
Stream^ underlyingStream,
ICollection<IBackupAsset^>^ assetsToWrite,
String^ password = nullptr,
bool keepOpen = false
)
static member Create :
underlyingStream : Stream *
assetsToWrite : ICollection<IBackupAsset> *
?password : string *
?keepOpen : bool
(* Defaults:
let _password = defaultArg password null
let _keepOpen = defaultArg keepOpen false
*)
-> BackupWriter 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
BackupWriterThe backup writer
See Also