EncryptionProvider.DecryptStream Method
Decrypts and returns a stream of encrypted data for a document.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub DecryptStream ( _
SessionHandle As Integer, _
StreamName As String, _
EncryptedStream As Object, _
UnencryptedStream As Object _
)
'Usage
Dim instance As EncryptionProvider
Dim SessionHandle As Integer
Dim StreamName As String
Dim EncryptedStream As Object
Dim UnencryptedStream As Object
instance.DecryptStream(SessionHandle, _
StreamName, EncryptedStream, UnencryptedStream)
void DecryptStream(
int SessionHandle,
string StreamName,
Object EncryptedStream,
Object UnencryptedStream
)
Parameters
SessionHandle
Type: System.Int32The ID of the current session.
StreamName
Type: System.StringThe ID of the stream of data.
EncryptedStream
Type: System.ObjectThe encrypted data stream.
UnencryptedStream
Type: System.ObjectThe data stream before decryption.
Remarks
This method is called by your COM add-in when the document is opened, and after your add-in has verified that the user opening the document is authenticated. This method is the inverse of EncryptStream(Int32, String, Object, Object) method and converts encrypted data back into pure (un-encrypted) data.