EncryptionProvider.CloneSession Method

Creates a second, working copy of the EncryptionProvider object’s encryption session for a file that is about to be saved.

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

Syntax

'Declaration
Function CloneSession ( _
    SessionHandle As Integer _
) As Integer
'Usage
Dim instance As EncryptionProvider
Dim SessionHandle As Integer
Dim returnValue As Integer

returnValue = instance.CloneSession(SessionHandle)
int CloneSession(
    int SessionHandle
)

Parameters

  • SessionHandle
    Type: System.Int32

    The ID of the cloned session.

Return Value

Type: System.Int32
Integer

Remarks

The output of this method is another session handle with the same encryption settings. When an autoSave operation occurs, you are provided with this session handle.

See Also

Reference

EncryptionProvider Interface

EncryptionProvider Members

Microsoft.Office.Core Namespace