This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARGlobeControl Interface > IARGlobeControl.HasDocumentPermission Method (ArcObjects .NET 10.5 SDK) |
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 );
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.
2003 800A07D3: No document loaded.
2014 800A07DE: The specified document permission is invalid.
esriARDocumentPermissionsPrint: Indicates whether permission exists to use the PrintView method and the ShowARWindow method to open the PageSetup and Printer windows.
esriARDocumentPermissionsExport: Indicates whether permission exists to use the IARGlobeControl::ExportView method.
esriARDocumentPermissionsIdentify: Indicates whether permission exists to set the CurrentARTool property to the Identify tool to use the ShowARWindow method to open the Identify window.
esriARDocumentPermissionsFind: Indicates whether permission exists to use the ShowARWindow method to open the Find window.
esriARDocumentPermissionsChangeView: This does not apply to the ArcReaderGlobeControl.
esriARDocumentPermissionsChangeLayerVisibility: Indicates whether permission exists to set the IARLayer::Visible property.
esriARDocumentPermissionsHyperlink: Indicates whether permission exists to set the CurrentARTool property to the Hyperlinks tool.
esriARDocumentPermissionsMeasure: Indicates whether permission exists to set the CurrentARTool property to the Measure tool.
esriARDocumentPermissionsViewTOC: Indicates whether permission exists to set the TOCVisible property.
esriARDocumentPermissionsOnlyInArcReader: This does not apply to the ArcReaderGlobeControl.
esriARDocumentPermissionsQueryFeatures: Indicates whether permission exists to use the IARGlobe::SearchARFeatures, IARGlobe::QueryARFeatures, IARLayer::SearchARFeatures, and IARLayer::QueryARFeatures methods.
esriARDocumentPermissionsQueryValues: Indicates whether permission exists to use the IARFeature::Value property.
esriARDocumentPermissionsCopyViewToClipboard: Indicates whether permission exists to use the CopyViewToClipboard method.
esriARDocumentPermissionsInternalObjects: This does not apply to the ArcReaderGlobeControl.