VerifyPassword(String,String) Method (OfficeDocumentCryptography)
Verifies the password of secured Office document.
'Declaration
Public Overloads Shared Function VerifyPassword( _
ByVal As System.String, _
ByVal As System.String _
) As Boolean
public static bool VerifyPassword(
System.String ,
System.String
)
public: static bool VerifyPassword(
System.String ,
System.String
)
public:
static bool VerifyPassword(
System.String ,
System.String
)
Parameters
- filename
- The file name.
- password
- The password.
Return Value
True - if document is secured and password is correct; otherwise, false.
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5