IsEncrypted

IDocumentInfo.IsEncrypted property

指示特定文件是否已加密并需要密码才能打开。对于无法加密的文档类型(如所有基于文本的文档类型)应始终返回“false”。

public bool IsEncrypted { get; }

也可以看看