EncryptionProvider.NewSession Method

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.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function NewSession ( _
    ParentWindow As Object _
) As Integer
'Usage
Dim instance As EncryptionProvider
Dim ParentWindow As Object
Dim returnValue As Integer

returnValue = instance.NewSession(ParentWindow)
int NewSession(
    Object ParentWindow
)

Parameters

  • ParentWindow
    Type: System.Object

    Specifies the window that is called to display the encryption settings.

Return Value

Type: System.Int32
Integer

Remarks

This method is called by your COM add-in.

See Also

Reference

EncryptionProvider Interface

EncryptionProvider Members

Microsoft.Office.Core Namespace