This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.IsPasswordProtected Property (ArcObjects .NET 10.5 SDK) |
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
Determines whether the specified file is password protected. To open password protected MapDocuments supply the correct password to the Open method.