IsPasswordProtected
PresentationInfo.IsPasswordProtected 属性
获取一个值,用于指示绑定的演示文稿是否受到打开密码的保护。
public bool IsPasswordProtected { get; }
示例
[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsPasswordProtected)
{
Console.WriteLine("演示文稿 '" + presentationFilePath + "' 受到打开密码的保护.");
}
另见
- class PresentationInfo
- namespace Aspose.Slides
- assembly Aspose.Slides