ArcObjects Library Reference (PublisherControls)  

IARGlobeControlDefault.HasDocumentPermission Method

Indicates if the currently loaded Published Map File (*.PMF) was published with the specified permission.

[Visual Basic .NET]
Public Function HasDocumentPermission ( _
    ByVal docPermission As esriARDocumentPermissions _
) As Boolean
[C#]
public bool HasDocumentPermission (
    esriARDocumentPermissions docPermission
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

The HasDocumentPermission method determines whether the currently loaded document was published with the specified functionality permission.

When a document is published the publisher can set a variety of permissions to limit the functionality that a user has access to when viewing the document in the ArcReaderGlobeControl. These permissions should be checked and the behavior of an application modified appropriately. For example, if permission to access hyperlinks does not exist an application should be modified so that a user can not set the current tool to the hyperlink tool.

See Also

IARGlobeControlDefault Interface