'DeclarationProtected Overloads Overridable Function DoOpenWrite( _ ByVal session As FileSystemEventsSession, _ ByVal overwrite As Boolean, _ ByVal share As FileShare, _ ByVal sourceFileHint As AbstractFile, _ ByVal openPhysicalStreamOnly As Boolean, _ ByVal outputStream As Stream, _ ByVal compressionMethod As CompressionMethod, _ ByVal compressionLevel As CompressionLevel, _ ByVal encryptionPassword As String, _ ByVal encryptionMethod As EncryptionMethod, _ ByVal encryptionStrength As Integer _ ) As Stream
'UsageDim instance As ZippedFile Dim session As FileSystemEventsSession Dim overwrite As Boolean Dim share As FileShare Dim sourceFileHint As AbstractFile Dim openPhysicalStreamOnly As Boolean Dim outputStream As Stream Dim compressionMethod As CompressionMethod Dim compressionLevel As CompressionLevel Dim encryptionPassword As String Dim encryptionMethod As EncryptionMethod Dim encryptionStrength As Integer Dim value As Stream value = instance.DoOpenWrite(session, overwrite, share, sourceFileHint, openPhysicalStreamOnly, outputStream, compressionMethod, compressionLevel, encryptionPassword, encryptionMethod, encryptionStrength)
protected virtual Stream DoOpenWrite( FileSystemEventsSession session, bool overwrite, FileShare share, AbstractFile sourceFileHint, bool openPhysicalStreamOnly, Stream outputStream, CompressionMethod compressionMethod, CompressionLevel compressionLevel, string encryptionPassword, EncryptionMethod encryptionMethod, int encryptionStrength )
Parameters
- session
- A reference to a Xceed.FileSystem.FileSystemEventsSession object which is responsible for raising all events that occur during the process.
- overwrite
- true if existing data for the file should be replaced; false if existing data should be preserved, appending new data at the end.
- share
- A System.IO.FileShare constant that determines how the file will be shared by different processes.
- sourceFileHint
- openPhysicalStreamOnly
- outputStream
- compressionMethod
- The CompressionMethod that will be used to compress the file.
- compressionLevel
- The CompressionLevel that will be used when compressing the file.
- encryptionPassword
- The password used to encrypt the file.
- encryptionMethod
- The EncryptionMethod used to encrypt the file.
- encryptionStrength
- The encryption strength used to encrypt the file. Encryption strength only applies when EncryptionMethod.WinZipAes is used.
Return Value
A System.IO.Stream object that can be used to write data to the file.