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.IsReadOnly Property (ArcObjects .NET 10.5 SDK) |
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,
VARIANT_BOOL* IsReadOnly
);
[C++]
Parameters sDocument [in] sDocument is a parameter of type BSTR IsReadOnly [out, retval] IsReadOnly is a parameter of type VARIANT_BOOL
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.