Blog

Initilize ArcGis 10 License using arcobject.

Posted by Yogesh Sharma Blogs | ArcObject Nov 06, 2012
Initilize ArcGis 10 License using arcobject.
INITILIZE ARCGIS 10 LICENSE USING ARCOBJECT-

important namespace-
ESRI.Arcgis.System;
ESRI.ArcGis.version;

public void chk_licence()
        {
            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);
            IAoInitialize m_AoInit = new AoInitializeClass();
            if(m_AoInit.IsProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeArcInfo)==esriLicenseStatus.esriLicenseAvailable)
            {
                m_AoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcInfo);
            }

            if(m_AoInit.IsProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeArcEditor)==esriLicenseStatus.esriLicenseAvailable)
            {
                m_AoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcEditor);
            }

            
            
            
    
    
    }
COMMENT USING
PREMIUM SPONSORS
Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.