SOLIDWORKS PDM Professional API Help Send Feedback
GetErrorMessage Method (IEdmVault11)
See Also  Example
EPDM.Interop.epdm Namespace > IEdmVault11 Interface : GetErrorMessage Method (IEdmVault11)


lHRESULT
Error code for which to get a description
Gets a description for the specified error code.

Syntax

Visual Basic 
Function GetErrorMessage( _
   ByVal lHRESULT As System.Integer _
) As System.String
C# 
System.string GetErrorMessage( 
   System.int lHRESULT
)
C++/CLI 
System.String^ GetErrorMessage( 
&   System.int lHRESULT
) 

Parameters

lHRESULT
Error code for which to get a description

Return Value

Description of the error code

Example

Remarks

This method returns a readable error message for HRESULT error codes. For example, if lHRESULT is 0x80040204, then this method returns "You have not logged in to the file vault."

Return codes: 

  • S_OK: The method successfully executed.
 

See Also

Availability

SOLIDWORKS PDM Professional 2010