VpnManagementAgent.AddProfileFromXmlAsync(String) Method
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.
Creates a new VPN connection based on a ProfileXML-encoded string (see ProfileXML XSD).
public:
virtual IAsyncOperation<VpnManagementErrorStatus> ^ AddProfileFromXmlAsync(Platform::String ^ xml) = AddProfileFromXmlAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnManagementErrorStatus> AddProfileFromXmlAsync(winrt::hstring const& xml);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnManagementErrorStatus> AddProfileFromXmlAsync(string xml);
function addProfileFromXmlAsync(xml)
Public Function AddProfileFromXmlAsync (xml As String) As IAsyncOperation(Of VpnManagementErrorStatus)
Parameters
- xml
-
String
Platform::String
winrt::hstring
A VpnProfile object.
Returns
An enum value indicating the error status.
- Attributes
Windows requirements
App capabilities |
networkingVpnProvider
|
Remarks
You should use this method only with a version of Windows with build number 18362.267, or later. The Windows 10 May 2019 Update (version 1903) has build number 18362; then, an update on July 27 2019 revised that build number to 18362.267. In build numbers prior to 18362.267, this method returns an error code, but does not add a profile.