CheckPassword
PresentationInfo.CheckPassword method
Checks whether a password is correct for a presentation protected with open password.
public bool CheckPassword(string password)
Parameter | Type | Description |
---|---|---|
password | String | The password to check. |
Return Value
True if the presentation is protected with open password and the password is correct and false otherwise.
Exceptions
exception | condition |
---|---|
InvalidOperationException | |
NotSupportedException |
Remarks
When the password is null or empty, this method returns false.
Examples
[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
bool isPasswordCorrect = info.CheckPassword("my_password");
See Also
- class PresentationInfo
- namespace Aspose.Slides
- assembly Aspose.Slides