This document is archived and information here might be outdated.  Recommended version.


IMapDocument.IsPasswordProtected Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMapDocument.IsPasswordProtected Property

Indicates if the map document is protected by a passsword.

[Visual Basic .NET]
Public Function get_IsPasswordProtected ( _
    ByVal sDocument As String _
) As Boolean
[C#]
public bool get_IsPasswordProtected (
    string sDocument
);
[C++]
HRESULT get_IsPasswordProtected(
  BSTR sDocument,
  VARIANT_BOOL* IsPasswordProtected
);
[C++]

Parameters sDocument [in] sDocument is a parameter of type BSTR IsPasswordProtected [out, retval] IsPasswordProtected is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Determines whether the specified file is password protected. To open password protected MapDocuments supply the correct password to the Open method.  

See Also

IMapDocument Interface

.NET Samples

Load a map document into the PageLayoutControl (Code Files: LoadMap)

.NET Related Topics

How to load a password-protected document