IsPasswordProtected
IPresentationInfo.IsPasswordProtected 属性
获取一个值,用于指示绑定的演示文稿是否受到打开时密码保护。
public bool IsPasswordProtected { get; }
示例
[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsPasswordProtected)
{
Console.WriteLine("演示文稿 '" + presentationFilePath + "' 受到打开时密码保护.");
}
另请参见
- 接口 IPresentationInfo
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides