Connectivity.ConnectionProfiles 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 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
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.