Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 3.24 KB

provisioningagent_provisionfromxmldocumentasync_1872273253.md

File metadata and controls

53 lines (41 loc) · 3.24 KB
-api-id -api-type -api-device-family-note
M:Windows.Networking.NetworkOperators.ProvisioningAgent.ProvisionFromXmlDocumentAsync(System.String)
winrt method
xbox

Windows.Networking.NetworkOperators.ProvisioningAgent.ProvisionFromXmlDocumentAsync

-description

Provisions a device for network connectivity asynchronously, based on the supplied XML document.

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.

-parameters

-param provisioningXmlDocument

An instance of CarrierControlSchema that contains the network connectivity provisioning information.

-returns

An asynchronous handler to start the provisioning attempt and track its completion.

-remarks

You can retrieve the results of the provisioning attempt using the ProvisionResultsXml method when the provisioning attempt has completed.

ProvisionFromXmlDocumentAsync returns critical errors as HRESULTs that are then translated into exceptions. The most common HRESULTs returned are listed below:

NameHRESULTDescription
E_ACCESSDENIED0x80070005LCaller is an operator app, but attempted to provision a different operator’s profiles
PROVCORE_E_XML_MALFORMED0x82170001Provisioning file is not well-formed XML
PROVCORE_E_XML_INVALID0x82170002Provisioning file does not conform to schema
PROVCORE_E_XML_SIGNATURE_INVALID0x82170003Provisioning file signature is invalid
PROVCORE_E_XML_SIGNATURE_UNTRUSTED0x82170004Signing certificate is not chained to a trusted root CA
PROVCORE_E_XML_DIGEST_INVALID0x82170005Provisioning file was modified after being signed
PROVCORE_E_XML_SIGNER_UNTRUSTED0x82170006User did not approve provisioning from this certificate.
PROVCORE_E_NO_LEAF_CERT0x82170007No leaf certificate was included in XML signature
PROVCORE_E_SIGNING_CERTIFICATE_INVALID_FOR_SIGNING0x8217000DSigning certificate does not meet requirements (Extended Validation, digital signature usage)
PROVCORE_E_XML_MISSING_SIGNATURE0x8217000EXML was not signed (and caller was not a mobile broadband operator app)

-examples

-see-also

-capabilities

cellularDeviceIdentity, cellularDeviceControl networkConnectionManagerProvisioning networkDataPlanProvisioning