Gets the correct value for a given code (based on the name of the error e.g. ECONNREFUSED)
for the currently executing OS
Namespace:
Couchbase.Lite
Assembly:
Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax public static int GetCode(
string name
)
Parameters
- name
- Type: SystemString
The name of the code to get the value for (e.g. ECONNREFUSED)
Return Value
Type:
Int32The correct code for the given error, or 0 if the name does not exist
See Also