Düzenle

Aracılığıyla paylaş


EncryptionProvider.ShowSettings method (Office)

Used to display a dialog of the encryption settings for the current document.

Syntax

expression.ShowSettings(SessionHandle, ParentWindow, ReadOnly, Remove)

expression An expression that returns an EncryptionProvider object.

Parameters

Name Required/Optional Data type Description
SessionHandle Required Long The ID of the current session.
ParentWindow Required IUnknown Specifies the window that is called to display the encryption settings.
ReadOnly Required Boolean Specifies whether you want the user to be able to change the encryption settings.
Remove Required Boolean If True, the encryption for a document will be removed during the next save operation.

Remarks

This method can only be called on an already encrypted document. Use this method in your COM add-in to display whatever user experience you like based on the user's permissions.

For example, in a pure encryption scenario, you can display a dialog box to change the document's password. In a rights management scenario, you can decide whether to show a dialog box for changing permissions or show the user's permissions.

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.