VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Office Namespace / OfficeDocumentCryptography Class / VerifyPassword Methods / VerifyPassword(Stream,String) Method
Syntax Requirements SeeAlso
In This Topic
VerifyPassword(Stream,String) Method (OfficeDocumentCryptography)
In This Topic
Verifies the password of secured Office document.
Syntax
'Declaration

Public Overloads Shared Function VerifyPassword( _
ByVal stream
The stream with file data.
As System.IO.Stream, _
ByVal password
The password.
As System.String _
) As Boolean
public static bool VerifyPassword(
System.IO.Stream stream,
System.String password
)

Parameters

stream
The stream with file data.
password
The password.

Return Value

True - if document is secured and password is correct; otherwise, false.
Requirements

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

See Also