IsPasswordProtected

PresentationInfo.IsPasswordProtected property

获取一个值,该值指示绑定的演示文稿是否受密码保护才能打开。

public bool IsPasswordProtected { get; }

例子

[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsPasswordProtected)
{
    Console.WriteLine("The presentation '" + presentationFilePath + "' is protected by password to open.");
}

也可以看看