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


IMapDocument.IsReadOnly 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.IsReadOnly Property
ArcGIS Developer Help

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

Save a layer file in a MapControl application Simple dynamic display application Schematics Engine application Temporal statistics Temporal statistics