Click or drag to resize

PosixBaseIsError Method

Checks whether or not the given code is the same as the code for the POSIX error name in a cross platform way.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.1.0-b0232
Syntax
C#
public static bool IsError(
	string name,
	int code
)

Parameters

name
Type: SystemString
The name of the code to get the value for (e.g. ECONNREFUSED)
code
Type: SystemInt32
The code to check

Return Value

Type: Boolean
true if the code matches, otherwise false
See Also