ArcGISCompare.LicenseInitializer.ShutdownApplication C# (CSharp) 메소드

ShutdownApplication() 공개 메소드

Shuts down AoInitialize object and check back in extensions to ensure any ESRI libraries that have been used are unloaded in the correct order.
Once Shutdown has been called, you cannot re-initialize the product license and should not make any ArcObjects call.
public ShutdownApplication ( ) : void
리턴 void
    public void ShutdownApplication()
    {
      if (m_hasShutDown)
        return;

      //Check back in extensions
      if (m_AoInit != null)
      {
        foreach (KeyValuePair<esriLicenseExtensionCode, esriLicenseStatus> item in m_extensionStatus)
        {
          if (item.Value == esriLicenseStatus.esriLicenseCheckedOut)
            m_AoInit.CheckInExtension(item.Key);
        }
        m_AoInit.Shutdown();
      }

      m_requestedProducts = null;
      m_requestedExtensions = null;
      m_extensionStatus = null;
      m_productStatus = null;

      m_hasShutDown = true;
    }