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

IMapDocument.IsPasswordProtected Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.IsPasswordProtected Property
ArcGIS Developer Help

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
public bool get_IsPasswordProtected (
    string sDocument
HRESULT get_IsPasswordProtected(
  BSTR sDocument,
  Boolean* IsPasswordProtected
sDocument [in]

sDocument is a parameter of type BSTR IsPasswordProtected [out, retval]
IsPasswordProtected is a parameter of type bool*

Product Availability

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


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