ConnectivityChangedEventArgs.NetworkAccess Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current state of network access.
public:
property Microsoft::Maui::Networking::NetworkAccess NetworkAccess { Microsoft::Maui::Networking::NetworkAccess get(); };
public Microsoft.Maui.Networking.NetworkAccess NetworkAccess { get; }
member this.NetworkAccess : Microsoft.Maui.Networking.NetworkAccess
Public ReadOnly Property NetworkAccess As NetworkAccess
Property Value
The current network access state.
Remarks
Even when Internet is returned, full internet access is not guaranteed.
Can throw PermissionException on Android if ACCESS_NETWORK_STATE
is not set in manifest.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.