Check for licensing level in ArcGIS 10.2.2

المشرف العام

Administrator
طاقم الإدارة
I am in process of migrating some legacy code from 10.0 to 10.2.2. As part of application, I need to make sure user is using ArcEditor (now called Standard) level license. Current logic looks at the registry setting to establish the license level. I wanted to get some feedback from developer community if there is a better way of doing this without using registry setting. Thanks

pRegSubKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\ESRI\License10.0") pRegLicenseValue = pRegSubKey.GetValue("SOFTWARE_CLASS") If Not pRegLicenseValue Is Nothing Then Select Case pRegLicenseValue Case "Viewer" pArcMapLicense = ArcMapLicenseLevel.ArcView Case "Editor" pArcMapLicense = ArcMapLicenseLevel.ArcEditor Case "Professional" pArcMapLicense = ArcMapLicenseLevel.ArcInfo End Select End If

أكثر...
 
أعلى