Share via


Connectivity.ConnectionProfiles Property

Definition

Gets the active connectivity types for the device.

public:
 static property System::Collections::Generic::IEnumerable<Microsoft::Maui::Networking::ConnectionProfile> ^ ConnectionProfiles { System::Collections::Generic::IEnumerable<Microsoft::Maui::Networking::ConnectionProfile> ^ get(); };
public static System.Collections.Generic.IEnumerable<Microsoft.Maui.Networking.ConnectionProfile> ConnectionProfiles { get; }
static member ConnectionProfiles : seq<Microsoft.Maui.Networking.ConnectionProfile>
Public Shared ReadOnly Property ConnectionProfiles As IEnumerable(Of ConnectionProfile)

Property Value

List of all connection profiles.

Remarks

Can throw PermissionException on Android if ACCESS_NETWORK_STATE is not set in manifest.

Applies to