TryDecryptOfficeDocument(String,String,String) Method (OfficeDocumentCryptography)
Tries to decrypt the Office document.
'Declaration
Public Overloads Shared Function TryDecryptOfficeDocument( _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.String _
) As Boolean
public static bool TryDecryptOfficeDocument(
System.String ,
System.String ,
System.String
)
public: static bool TryDecryptOfficeDocument(
System.String ,
System.String ,
System.String
)
public:
static bool TryDecryptOfficeDocument(
System.String ,
System.String ,
System.String
)
Parameters
- securedDocumentFilename
- The name of file that contains secured Office document.
- password
- The password for Office document.
- decryptedDocumentFilename
- The name of file, where decrypted Office document must be written.
Return Value
True if document is decrypted successfully; false if document is not secured or error occurs.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5