Click or drag to resize

PosixBaseGetCode Method

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.1.0-b0232
Syntax
C#
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: Int32
The correct code for the given error, or 0 if the name does not exist
See Also