Class NetworkMonitorHelper
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class NetworkMonitorHelper : Object, NetworkMonitor, IDisposable, InstanceFactory, GTypeProvider
- Inheritance
-
NetworkMonitorHelper
- Implements
- Inherited Members
Constructors
NetworkMonitorHelper(ObjectHandle)
public NetworkMonitorHelper(ObjectHandle handle)
Parameters
handle
ObjectHandle
Properties
Connectivity
public NetworkConnectivity Connectivity { get; }
Property Value
NetworkAvailable
public bool NetworkAvailable { get; }
Property Value
NetworkMetered
public bool NetworkMetered { get; }
Property Value
Methods
CanReach(SocketConnectable, Cancellable?)
[Version("2.32")]
public bool CanReach(SocketConnectable connectable, Cancellable? cancellable)
Parameters
connectable
SocketConnectablecancellable
Cancellable
Returns
CanReachFinish(AsyncResult)
public bool CanReachFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
GetConnectivity()
[Version("2.44")]
public NetworkConnectivity GetConnectivity()
Returns
GetDefault()
[Version("2.32")]
public static NetworkMonitor GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetNetworkAvailable()
[Version("2.32")]
public bool GetNetworkAvailable()
Returns
GetNetworkMetered()
[Version("2.46")]
public bool GetNetworkMetered()