Table of contents
TOC
Collapse the table of content
Expand the table of content

EncryptionProvider.EndSession Method (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Ends the current encryption session.

Syntax

expression. EndSession( SessionHandle )

expression An expression that returns a EncryptionProvider object.

Parameters

NameRequired/OptionalData TypeDescription
SessionHandleRequiredLongThe ID of the current session.

Remarks

During a save operation, the CloneSession method is called by your COM add-in to create a second, working copy of the EncryptionProvider object's encryption session for the file that is about to be saved. Next the Save method is called to get whatever custom information you would like to persist about your encryption settings. This information is available when this document is reopened later. Then the EncryptStream method is called which gives the provider the entire contents of the document. And finally, to complete the process, the EndSession method for the cloned session handle.

See also

Concepts

EncryptionProvider Object

Other resources

EncryptionProvider Object Members

© 2018 Microsoft