Table of Contents

Class NetworkMonitorHelper

Namespace
Gio
Assembly
Gio-2.0.dll
public sealed class NetworkMonitorHelper : Object, IObject, INotifyPropertyChanged, IDisposable, NetworkMonitor, IHandle, GTypeProvider
Inheritance
NetworkMonitorHelper
Implements
Inherited Members

Constructors

NetworkMonitorHelper(IntPtr, bool)

public NetworkMonitorHelper(IntPtr handle, bool ownedRef)

Parameters

handle IntPtr
ownedRef bool

Properties

Connectivity

public NetworkConnectivity Connectivity { get; }

Property Value

NetworkConnectivity

NetworkAvailable

public bool NetworkAvailable { get; }

Property Value

bool

NetworkMetered

public bool NetworkMetered { get; }

Property Value

bool

Methods

CanReach(SocketConnectable, Cancellable?)

[Version("2.32")]
public bool CanReach(SocketConnectable connectable, Cancellable? cancellable)

Parameters

connectable SocketConnectable
cancellable Cancellable

Returns

bool

CanReachFinish(AsyncResult)

public bool CanReachFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

GetConnectivity()

[Version("2.44")]
public NetworkConnectivity GetConnectivity()

Returns

NetworkConnectivity

GetDefault()

[Version("2.32")]
public static NetworkMonitor GetDefault()

Returns

NetworkMonitor

GetGType()

public static Type GetGType()

Returns

Type

GetNetworkAvailable()

[Version("2.32")]
public bool GetNetworkAvailable()

Returns

bool

GetNetworkMetered()

[Version("2.46")]
public bool GetNetworkMetered()

Returns

bool