CheckPassword
IPresentationInfo.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.
Remarks
When the password is null or empty, this method returns false.
Examples
[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("pres.pptx");
bool isPasswordCorrect = info.CheckPassword("my_password");
See Also
- interface IPresentationInfo
- namespace Aspose.Slides
- assembly Aspose.Slides