ArcObjects Library Reference (Carto)  

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
[C#]
public bool get_IsRestricted (
    string sDocument
);
[C++]
HRESULT get_IsRestricted(
  BSTR sDocument,
  VARIANT_BOOL* IsRestricted
);
[C++]

Parameters

sDocument [in]   sDocument is a parameter of type BSTR IsRestricted [out, retval]   IsRestricted is a parameter of type VARIANT_BOOL

Product Availability

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

Description

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.

Remarks

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