EdmResultSuccessCodes_e Enumeration
Success codes. See
EdmResultErrorCodes_e for error codes.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Enum EdmResultSuccessCodes_e
Inherits System.Enum |
| C# | |
|---|
public enum EdmResultSuccessCodes_e : System.Enum |
| C++/CLI | |
|---|
public enum class EdmResultSuccessCodes_e : public System.Enum |
Members
Example
Client code can only access these return codes by handling the exception. For example, in C#:
try
{
// Some SOLIDWORKS Enterprise PDM call that results in an exception
}
catch (System.Runtime.InteropServices.ComException comEx)
{
switch (comEx.ErrorCode)
{
case S_EDM_xxx:
// respond to xxx
break;
case S_EDM_yyy:
// respond to yyy
break;
default:
// Unexpected or cannot be handled silently
// Use IEdmVault5::GetErrorString or IEdmVault11::GetErrorMessage to prepare a message for the user or log
break;
}
}
Remarks
See Also