EncryptionProvider.EncryptStream method (Office)
Encrypts and returns a stream of data for a document.
Syntax
expression.EncryptStream(SessionHandle, StreamName, UnencryptedStream, EncryptedStream)
expression An expression that returns an EncryptionProvider object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
SessionHandle | Required | Long | The ID of the current session. |
StreamName | Required | String | The name of the encrypted stream of document data. |
UnencryptedStream | Required | IUnknown | The data stream before encryption. |
EncryptedStream | Required | IUnknown | 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.