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

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

IMapDocument.IsRestricted Property

Indicates if the use of the map document is restricted to certain applications.

[Visual Basic .NET]
Public Function get_IsRestricted ( _
    ByVal sDocument As String _
) As Boolean
public bool get_IsRestricted (
    string sDocument
HRESULT get_IsRestricted(
  BSTR sDocument,
  Boolean* IsRestricted
sDocument [in]

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

Product Availability

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


Determines whether the specified file is restricted. A file will be restricted if it is a Published Map File (*.pmf) that was published with no access to internal objects. Check whether a file is restricted before using the Open method, as restricted files cannot be opened.


When publishing a Published Map File the default setting is to restrict the document. To ensure the MapDocument CoClass can Open the PMF, go to the Application tab in the ArcGIS Publisher settings dialog and uncheck the option "Only in ArcReader" and check the option "Unrestricted access to contents of Published Map".

See Also

IMapDocument Interface