_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

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace