DirectoryExportEncryptedDirectoryRaw Method (String, Stream)
public static void ExportEncryptedDirectoryRaw( string fileName, Stream outputStream )
Public Shared Sub ExportEncryptedDirectoryRaw ( fileName As String, outputStream As Stream )
public: static void ExportEncryptedDirectoryRaw( String^ fileName, Stream^ outputStream )
static member ExportEncryptedDirectoryRaw : fileName : string * outputStream : Stream -> unit
The directory being backed up is not decrypted; it is backed up in its encrypted state.
If the caller does not have access to the key for the file, the caller needs Backup to export encrypted files. See PrivilegeEnabler.
To backup an encrypted directory call one of the ExportEncryptedDirectoryRaw Overload overloads and specify the directory to backup along with the destination stream of the backup data.
This function is intended for the backup of only encrypted directories; see BackupFileStream for backup of unencrypted directories.
Note that this method does not back up the files inside the directory, only the directory entry itself.