is_uuid


Description:


[ Version ( deprecated = true , deprecated_since = "1.32" ) ]
public bool is_uuid (string? str)

Warning: is_uuid is deprecated since 1.32.

Checks if str is a UUID

Note:

older versions of NetworkManager had a wrong understanding of what makes a valid UUID. This function can thus accept some inputs as valid, which in fact are not valid UUIDs.

Parameters:

str

a string that might be a UUID

Returns:

true if str is a UUID, false if not

In older versions, is_uuid did not accept null as str argument. Don't pass null if you run against older versions of libnm.


Namespace: NM.Utils
Package: libnm