VpnManagementAgent.UpdateProfileFromXmlAsync(String) 方法

定义

根据输入 ProfileXML 编码的字符串更新现有 VPN 配置文件(请参阅 ProfileXML XSD)。

public:
 virtual IAsyncOperation<VpnManagementErrorStatus> ^ UpdateProfileFromXmlAsync(Platform::String ^ xml) = UpdateProfileFromXmlAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnManagementErrorStatus> UpdateProfileFromXmlAsync(winrt::hstring const& xml);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnManagementErrorStatus> UpdateProfileFromXmlAsync(string xml);
function updateProfileFromXmlAsync(xml)
Public Function UpdateProfileFromXmlAsync (xml As String) As IAsyncOperation(Of VpnManagementErrorStatus)

参数

xml
String

Platform::String

winrt::hstring

ProfileXML XML 字符串。

返回

指示错误状态的枚举值。

属性

Windows 要求

应用功能
networkingVpnProvider

适用于