esriVersion |
RuntimeManager..::.BindLicense Method (ProductCode, LicenseLevel) |
RuntimeManager Class Example See Also |
Bind to a particular ArcGIS product and automatically initialize with the specified license level. Binding
is a new requirement for all stand-alone ArcGIS Engine applications beginning at 10.0.
Namespace:
ESRI.ArcGISAssembly: ESRI.ArcGIS.Version (in ESRI.ArcGIS.Version.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C# |
---|
public static void BindLicense( ProductCode code, LicenseLevel licenseLevel ) |
Visual Basic (Declaration) |
---|
Public Shared Sub BindLicense ( _ code As ProductCode, _ licenseLevel As LicenseLevel _ ) |
Visual C++ |
---|
public: static void BindLicense( ProductCode code, LicenseLevel licenseLevel ) |
Parameters
- code
- Type: ESRI.ArcGIS..::.ProductCode
The ArcGIS product code; e.g., ProductCode.Engine, ProductCode.Desktop.
- licenseLevel
- Type: ESRI.ArcGIS..::.LicenseLevel
Return Value
Remarks
This function will automatically call AoInitialze with the specified license
level. This function only supports common
AoInitialize options. To check out any product extensions to Engine or Desktop, you
need to additionally call AoInitialize.CheckOutExtension.
Examples
The code below shows how to bind to a particular ArcGIS installation.
CopyC#
//Bind to Engine Product and License as Standard Level (Engine Runtime) RuntimeManager.BindLicense(ProductCode.Engine, LicenseLevel.Standard); //Bind to Desktop Product and License as Standard Level (ArcView, ArcEditor, ArcInfo) RuntimeManager.BindLicense(ProductCode.Desktop, LicenseLevel.Standard); //Bind to Engine Product and License as Geodatabase Update Level (Engine GeodatabaseUpdate) RuntimeManager.BindLicense(ProductCode.Engine, LicenseLevel.GeodatabaseUpdate); //Bind to Engine Product and License as Geodatabase Update Level (ArcEditor, ArcInfo) RuntimeManager.BindLicense(ProductCode.Desktop, LicenseLevel.GeodatabaseUpdate);
CopyVB.NET
'Bind to Engine Product and License as Standard Level (Engine Runtime) RuntimeManager.BindLicense(ProductCode.Engine, LicenseLevel.Standard) 'Bind to Desktop Product and License as Standard Level (ArcView, ArcEditor, ArcInfo) RuntimeManager.BindLicense(ProductCode.Desktop, LicenseLevel.Standard) 'Bind to Engine Product and License as Geodatabase Update Level (Engine GeodatabaseUpdate) RuntimeManager.BindLicense(ProductCode.Engine, LicenseLevel.GeodatabaseUpdate) 'Bind to Engine Product and License as Geodatabase Update Level (ArcEditor, ArcInfo) RuntimeManager.BindLicense(ProductCode.Desktop, LicenseLevel.GeodatabaseUpdate)