This document is archived and information here might be outdated.  Recommended version.


Check In Extension License Snippet (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference

Check In Extension License Snippet

Check in a specified ArcGIS extension license.

[C#]
///<summary>Check in a specified ArcGIS extension license.</summary>
///  
///<param name="licenseExtensionCode">An esriLicenseExtensionCode enumeration that is the ArcGIS extension license to check in (or release). Example: ESRI.ArcGIS.esriSystem.esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst</param>
///   
///<remarks></remarks>
public void CheckInExtensionLicense(ESRI.ArcGIS.esriSystem.esriLicenseExtensionCode licenseExtensionCode)
{
    ESRI.ArcGIS.esriSystem.IAoInitialize aoInitialize=new ESRI.ArcGIS.esriSystem.AoInitializeClass();
    aoInitialize.CheckInExtension(licenseExtensionCode);
}
[Visual Basic .NET]
'''<summary>Check in a specified ArcGIS extension license.</summary>
'''  
'''<param name="licenseExtensionCode">An esriLicenseExtensionCode enumeration that is the ArcGIS extension license to check in (or release). Example: ESRI.ArcGIS.esriSystem.esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst</param>
'''   
'''<remarks></remarks>
Public Sub CheckInExtensionLicense(ByVal licenseExtensionCode As ESRI.ArcGIS.esriSystem.esriLicenseExtensionCode)

  Dim aoInitialize As ESRI.ArcGIS.esriSystem.IAoInitialize=New ESRI.ArcGIS.esriSystem.AoInitializeClass
  aoInitialize.CheckInExtension(licenseExtensionCode)

End Sub

Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.System