MobileBroadbandAccount MobileBroadbandAccount MobileBroadbandAccount MobileBroadbandAccount MobileBroadbandAccount Class

Definition

Represents a mobile broadband account and related information about the network provider for the account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : sealed class MobileBroadbandAccount : IMobileBroadbandAccount, IMobileBroadbandAccount2, IMobileBroadbandAccount3
struct winrt::Windows::Networking::NetworkOperators::MobileBroadbandAccount : IMobileBroadbandAccount, IMobileBroadbandAccount2, IMobileBroadbandAccount3
public sealed class MobileBroadbandAccount : IMobileBroadbandAccount, IMobileBroadbandAccount2, IMobileBroadbandAccount3
Public NotInheritable Class MobileBroadbandAccount Implements IMobileBroadbandAccount, IMobileBroadbandAccount2, IMobileBroadbandAccount3
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

Properties

AccountExperienceUrl AccountExperienceUrl AccountExperienceUrl AccountExperienceUrl AccountExperienceUrl

Returns the Account Experience URL associated with the Mobile Broadband account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : Uri AccountExperienceUrl { get; }
Uri AccountExperienceUrl();
public Uri AccountExperienceUrl { get; }
Public ReadOnly Property AccountExperienceUrl As Uri
var uri = mobileBroadbandAccount.accountExperienceUrl;
Value
Uri Uri Uri

The URL of the operator’s website used to configure Mobile Broadband.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

An Account Experience URL represents a mobile broadband account and its related information about the network provider. For more information, see Microsoft Store mobile broadband apps.

AvailableNetworkAccountIds AvailableNetworkAccountIds AvailableNetworkAccountIds AvailableNetworkAccountIds AvailableNetworkAccountIds

A list of all network account IDs for the network service provider.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : static IVectorView<Platform::String> AvailableNetworkAccountIds { get; }
static IVectorView<winrt::hstring> AvailableNetworkAccountIds();
public static IReadOnlyList<string> AvailableNetworkAccountIds { get; }
Public Static ReadOnly Property AvailableNetworkAccountIds As IReadOnlyList<string>
var iReadOnlyList = Windows.Networking.NetworkOperators.MobileBroadbandAccount.availableNetworkAccountIds;
Value
IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

A list of all network account IDs for the network service provider.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

CurrentDeviceInformation CurrentDeviceInformation CurrentDeviceInformation CurrentDeviceInformation CurrentDeviceInformation

Gets the mobile broadband device information associated with this account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : MobileBroadbandDeviceInformation CurrentDeviceInformation { get; }
MobileBroadbandDeviceInformation CurrentDeviceInformation();
public MobileBroadbandDeviceInformation CurrentDeviceInformation { get; }
Public ReadOnly Property CurrentDeviceInformation As MobileBroadbandDeviceInformation
var mobileBroadbandDeviceInformation = mobileBroadbandAccount.currentDeviceInformation;
Value
MobileBroadbandDeviceInformation MobileBroadbandDeviceInformation MobileBroadbandDeviceInformation

The mobile broadband device information associated with this account.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

CurrentNetwork CurrentNetwork CurrentNetwork CurrentNetwork CurrentNetwork

Gets the Mobile Broadband network object for this account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : MobileBroadbandNetwork CurrentNetwork { get; }
MobileBroadbandNetwork CurrentNetwork();
public MobileBroadbandNetwork CurrentNetwork { get; }
Public ReadOnly Property CurrentNetwork As MobileBroadbandNetwork
var mobileBroadbandNetwork = mobileBroadbandAccount.currentNetwork;
Value
MobileBroadbandNetwork MobileBroadbandNetwork MobileBroadbandNetwork

The Mobile Broadband network object for this account.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

NetworkAccountId NetworkAccountId NetworkAccountId NetworkAccountId NetworkAccountId

Gets a unique identifier for the mobile broadband account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : Platform::String NetworkAccountId { get; }
winrt::hstring NetworkAccountId();
public string NetworkAccountId { get; }
Public ReadOnly Property NetworkAccountId As string
var string = mobileBroadbandAccount.networkAccountId;
Value
string string string

A unique identifier for the mobile broadband account.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

The network account identifier is supplied by the mobile broadband provider when an account is activated and is stored locally in metadata that describes account information for the mobile broadband device.

The network account identifier for a mobile broadband account matches the value passed to the CreateFromNetworkAccountId method.

ServiceProviderGuid ServiceProviderGuid ServiceProviderGuid ServiceProviderGuid ServiceProviderGuid

A unique identifier for the network provider for the mobile broadband account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : Platform::Guid ServiceProviderGuid { get; }
Guid ServiceProviderGuid();
public Guid ServiceProviderGuid { get; }
Public ReadOnly Property ServiceProviderGuid As Guid
var guid = mobileBroadbandAccount.serviceProviderGuid;
Value
Guid Guid Guid

A unique identifier for the network provider for the mobile broadband account.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

ServiceProviderName ServiceProviderName ServiceProviderName ServiceProviderName ServiceProviderName

The name of the network provider for the mobile broadband account.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : Platform::String ServiceProviderName { get; }
winrt::hstring ServiceProviderName();
public string ServiceProviderName { get; }
Public ReadOnly Property ServiceProviderName As string
var string = mobileBroadbandAccount.serviceProviderName;
Value
string string string

The name of the network provider for the mobile broadband account.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

Methods

CreateFromNetworkAccountId(String) CreateFromNetworkAccountId(String) CreateFromNetworkAccountId(String) CreateFromNetworkAccountId(String) CreateFromNetworkAccountId(String)

Creates a mobile broadband account for the mobile device associated with the supplied network account ID.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : static MobileBroadbandAccount CreateFromNetworkAccountId(Platform::String networkAccountId)
MobileBroadbandAccount CreateFromNetworkAccountId(winrt::hstring networkAccountId) const;
public static MobileBroadbandAccount CreateFromNetworkAccountId(String networkAccountId)
Public Static Function CreateFromNetworkAccountId(networkAccountId As String) As MobileBroadbandAccount
var mobileBroadbandAccount = Windows.Networking.NetworkOperators.MobileBroadbandAccount.createFromNetworkAccountId(networkAccountId);
Parameters
networkAccountId
String String String

The network account ID to use to select the corresponding mobile broadband device to use for the account.

Returns

A mobile broadband account for the mobile device associated with the supplied network account ID.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity

GetConnectionProfiles() GetConnectionProfiles() GetConnectionProfiles() GetConnectionProfiles() GetConnectionProfiles()

Retrieves an array of ConnectionProfile objects that represent connections associated with the Mobile Broadband account.

public : IVectorView<ConnectionProfile> GetConnectionProfiles()
IVectorView<ConnectionProfile> GetConnectionProfiles() const;
public IReadOnlyList<ConnectionProfile> GetConnectionProfiles()
Public Function GetConnectionProfiles() As IReadOnlyList<ConnectionProfile>( Of ConnectionProfile )
var iVectorView = mobileBroadbandAccount.getConnectionProfiles();
Returns
IReadOnlyList<ConnectionProfile> IReadOnlyList<ConnectionProfile> IReadOnlyList<ConnectionProfile>

An array of ConnectionProfile objects.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
cellularDeviceControl cellularDeviceIdentity