_Document.HasPassword Property
Returns True if a password is required to open the specified document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
ReadOnly Property HasPassword As Boolean
Get
'Usage
Dim instance As _Document
Dim value As Boolean
value = instance.HasPassword
bool HasPassword { get; }
Property Value
Type: System.Boolean