Partager via


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.Int32

    The ID of the current session.

  • StreamName
    Type: System.String

    The name of the encrypted stream of document data.

  • UnencryptedStream
    Type: System.Object

    The data stream before encryption.

  • EncryptedStream
    Type: System.Object

    The data stream information after it has been encrypted.

Remarks

This method is typically called by your COM add-in during a save operation.

See Also

Reference

EncryptionProvider Interface

EncryptionProvider Members

Microsoft.Office.Core Namespace