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);
            }

            
            
            
    
    
    }
post comment
     
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.