is_type


Description:

public bool is_type (string type)

A convenience function to check if the given this is a particular type (ie wired, Wi-Fi, ppp, etc).

Checks the type property of the connection and matches that against type.

Parameters:

this

the Connection

type

a setting name to check the connection's type against (like nm_setting_wireless_setting_name or nm_setting_wired_setting_name)

Returns:

true if the connection is of the given type, false if not