Share via


ProvisioningAgent.GetProvisionedProfile(ProfileMediaType, String) Method

Definition

Retrieves cost and plan information associated with the mobile broadband profile.

Note

This functionality is available only 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 Microsoft Store, then you'll need special approval. For more information, see the Restricted capabilities section in the App capability declarations topic.

public:
 virtual ProvisionedProfile ^ GetProvisionedProfile(ProfileMediaType mediaType, Platform::String ^ profileName) = GetProvisionedProfile;
ProvisionedProfile GetProvisionedProfile(ProfileMediaType const& mediaType, winrt::hstring const& profileName);
public ProvisionedProfile GetProvisionedProfile(ProfileMediaType mediaType, string profileName);
function getProvisionedProfile(mediaType, profileName)
Public Function GetProvisionedProfile (mediaType As ProfileMediaType, profileName As String) As ProvisionedProfile

Parameters

mediaType
ProfileMediaType

The media type that the profile belongs to.

profileName
String

Platform::String

winrt::hstring

The name of the profile that the cost will be applied to.

Returns

The profile.

Windows requirements

App capabilities
cellularDeviceControl networkConnectionManagerProvisioning networkDataPlanProvisioning cellularDeviceIdentity

Applies to