Document.HasPassword Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether a password is required to open the document.
public:
property bool HasPassword { bool get(); };
public bool HasPassword { get; }
member this.HasPassword : bool
Public ReadOnly Property HasPassword As Boolean
Property Value
true
if a password is required to open the document; otherwise, false
.