'Declaration Public Overloads Shared Function TryDecryptOfficeDocument( _
ByVal securedDocumentStreamThe stream that contains secured Office document.As System.IO.Stream, _
ByVal passwordThe password for Office document.As System.String, _
ByVal decryptedDocumentStreamThe stream, where decrypted Office document must be written.As System.IO.Stream _
) As Boolean
public static bool TryDecryptOfficeDocument(
System.IO.Stream securedDocumentStream,
System.String password,
System.IO.Stream decryptedDocumentStream
)
public: static bool TryDecryptOfficeDocument(
System.IO.Stream* securedDocumentStream,
System.String password,
System.IO.Stream* decryptedDocumentStream
)
public:
static bool TryDecryptOfficeDocument(
System.IO.Stream^ securedDocumentStream,
System.String password,
System.IO.Stream^ decryptedDocumentStream
)
Parameters
- securedDocumentStream
- The stream that contains secured Office document.
- password
- The password for Office document.
- decryptedDocumentStream
- The stream, where decrypted Office document must be written.
Return Value
True if document is decrypted successfully; false if document is not secured or error occurs.