EncryptionProvider.EncryptStream Method
Encrypts and returns a stream of data for a document.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub EncryptStream ( _
SessionHandle As Integer, _
StreamName As String, _
UnencryptedStream As Object, _
EncryptedStream As Object _
)
'Usage
Dim instance As EncryptionProvider
Dim SessionHandle As Integer
Dim StreamName As String
Dim UnencryptedStream As Object
Dim EncryptedStream As Object
instance.EncryptStream(SessionHandle, _
StreamName, UnencryptedStream, EncryptedStream)
void EncryptStream(
int SessionHandle,
string StreamName,
Object UnencryptedStream,
Object EncryptedStream
)
Parameters
SessionHandle
Type: System.Int32The ID of the current session.
StreamName
Type: System.StringThe name of the encrypted stream of document data.
UnencryptedStream
Type: System.ObjectThe data stream before encryption.
EncryptedStream
Type: System.ObjectThe data stream information after it has been encrypted.
Remarks
This method is typically called by your COM add-in during a save operation.