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


IMapDocument.IsReadOnly Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapDocument.IsReadOnly Property

Indicates if the map document is read only.

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

Parameters sDocument [in]
sDocument is a parameter of type BSTR IsReadOnly [out, retval]
IsReadOnly is a parameter of type bool*

Product Availability

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

Description

Determines whether the specified file is read only. The Save method cannot overwrite a read-only MapDocument, use the SaveAs to write to a new document.

See Also

IMapDocument Interface

.NET Samples

Simple dynamic display application (Code Files: MainForm) | Implementing a property page for an ArcGIS Engine application (Code Files: frmMain) | Save a layer file in a MapControl application (Code Files: frmMain) | Schematics Engine application (Code Files: MainForm) | Temporal statistics (Code Files: MainForm)