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


IAuthorizeLicense.LastError Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

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(
  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

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