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 SETTING_NAME or SETTING_NAME)

Returns:

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