EncryptionProvider.NewSession method (Office)

Used by the EncryptionProvider object to create a new encryption session. This session is used by the provider to cache document-specific information about the encryption, users, and rights while the document is in memory.

Syntax

expression.NewSession(ParentWindow)

expression An expression that returns an EncryptionProvider object.

Parameters

Name Required/Optional Data type Description
ParentWindow Required IUnknown Specifies the window that is called to display the encryption settings.

Return value

Long

Remarks

This method is called by your COM add-in.

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.