EncryptionProvider.ShowSettings Method
Used to display a dialog of the encryption settings for the current document.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub ShowSettings ( _
SessionHandle As Integer, _
ParentWindow As Object, _
ReadOnly As Boolean, _
<OutAttribute> ByRef Remove As Boolean _
)
'Usage
Dim instance As EncryptionProvider
Dim SessionHandle As Integer
Dim ParentWindow As Object
Dim ReadOnly As Boolean
Dim Remove As Boolean
instance.ShowSettings(SessionHandle, _
ParentWindow, ReadOnly, Remove)
void ShowSettings(
int SessionHandle,
Object ParentWindow,
bool ReadOnly,
out bool Remove
)
Parameters
SessionHandle
Type: System.Int32The ID of the current session.
ParentWindow
Type: System.ObjectSpecifies the window that is called to display the encryption settings.
ReadOnly
Type: System.BooleanSpecifies whether you want the user to be able to change the encryption settings.
Remove
Type: System.BooleanIf 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. You can use this method in your COM add-in to display whatever user experience you like based on the user's missions. 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.