VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Office Namespace / OfficeDocumentCryptography Class / TryDecryptOfficeDocument Methods / TryDecryptOfficeDocument(Stream,String,Stream) Method
Syntax Requirements SeeAlso
In This Topic
    TryDecryptOfficeDocument(Stream,String,Stream) Method (OfficeDocumentCryptography)
    In This Topic
    Tries to decrypt the Office document.
    Syntax
    'Declaration
    
    Public Overloads Shared Function TryDecryptOfficeDocument( _
    ByVal securedDocumentStream
    The stream that contains secured Office document.
    As System.IO.Stream, _
    ByVal password
    The password for Office document.
    As System.String, _
    ByVal decryptedDocumentStream
    The 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.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also