_Presentation.SetPasswordEncryptionOptions Method
Sets the options Microsoft PowerPoint uses for encrypting presentations with passwords.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub SetPasswordEncryptionOptions ( _
PasswordEncryptionProvider As String, _
PasswordEncryptionAlgorithm As String, _
PasswordEncryptionKeyLength As Integer, _
PasswordEncryptionFileProperties As Boolean _
)
'Usage
Dim instance As _Presentation
Dim PasswordEncryptionProvider As String
Dim PasswordEncryptionAlgorithm As String
Dim PasswordEncryptionKeyLength As Integer
Dim PasswordEncryptionFileProperties As Boolean
instance.SetPasswordEncryptionOptions(PasswordEncryptionProvider, _
PasswordEncryptionAlgorithm, PasswordEncryptionKeyLength, _
PasswordEncryptionFileProperties)
void SetPasswordEncryptionOptions(
string PasswordEncryptionProvider,
string PasswordEncryptionAlgorithm,
int PasswordEncryptionKeyLength,
bool PasswordEncryptionFileProperties
)
Parameters
- PasswordEncryptionProvider
Type: System.String
The name of the encryption provider.
- PasswordEncryptionAlgorithm
Type: System.String
The name of the encryption algorithm. PowerPoint supports stream-encrypted algorithms.
- PasswordEncryptionKeyLength
Type: System.Int32
The encryption key length. Must be a multiple of 8, starting at 40.
- PasswordEncryptionFileProperties
Type: System.Boolean
msoTrue for PowerPoint to encrypt file properties.
Remarks
The PasswordEncryptionFileProperties parameter value can be one of these MsoTriState constants.