This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IA > IAuthorizeLicense Interface > IAuthorizeLicense.LastError Property (ArcObjects .NET 10.4 SDK) |
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(
BSTR* LastError,
Long* lastErrorCode
);
[C++]
Parameters LastError [out] LastError is a parameter of type BSTR lastErrorCode [out, retval] lastErrorCode is a parameter of type Long
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.