ArcObjects Library Reference (System)  

IAoInitialize.InitializedProduct Method

Retrieve's the product code at which the application has been initialized.

[Visual Basic .NET]
Public Function InitializedProduct ( _
) As esriLicenseProductCode
[C#]
public esriLicenseProductCode InitializedProduct (
);
[C++]
HRESULT InitializedProduct(
  esriLicenseProductCode* ProductCode
);
[C++]

Parameters

ProductCode [out, retval]

  ProductCode is a parameter of type esriLicenseProductCode

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The InitializedProduct method returns the product license that was passed to the Initialize method.

Checking what product license an application has been initialized with is useful for setting the enabled state of an applications functionality. For example, if an application containing some enterprise geodatabase editing has been initialized with an Engine Single Use with geodatabase editing or an ArcGIS for Desktop Standard or an ArcGIS for Desktop Advanced license, the editing functionality can be enabled. If, however, the application has been initialized with an Engine Single Use or ArcGIS for Desktop Basic license, the editing functionality must be disabled

See Also

IAoInitialize Interface