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


IAuthorizeLicense.LastError Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IA > IAuthorizeLicense Interface > IAuthorizeLicense.LastError Property
ArcGIS Developer Help

IAuthorizeLicense.LastError Property

Retrieves the last error message and code from an attempt to process features.

[Visual Basic .NET]
Public Function get_LastError ( _
    ByRef LastError As String _
) As Integer
[C#]
public int get_LastError (
    ref string LastError
);
[C++]
HRESULT get_LastError(
  System.String* LastError,
  System.Int32* lastErrorCode
);
[C++]
Parameters
LastError [out]

LastError is a parameter of type BSTR* lastErrorCode [out, retval]
lastErrorCode is a parameter of type int*

Product Availability

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

Description

The LastError property returns information about why the AddLicense method failed to add the specified license to the keycodes file. Use the LastError property after the AddLicense method to retrieve information on the nature of any error.

See Also

IAuthorizeLicense Interface