VpnManagementAgent.DeleteProfileAsync(IVpnProfile) 方法

定义

删除现有的 VPN 配置文件。

public:
 virtual IAsyncOperation<VpnManagementErrorStatus> ^ DeleteProfileAsync(IVpnProfile ^ profile) = DeleteProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnManagementErrorStatus> DeleteProfileAsync(IVpnProfile const& profile);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnManagementErrorStatus> DeleteProfileAsync(IVpnProfile profile);
function deleteProfileAsync(profile)
Public Function DeleteProfileAsync (profile As IVpnProfile) As IAsyncOperation(Of VpnManagementErrorStatus)

参数

profile
IVpnProfile

VpnProfile 对象。

返回

指示错误状态的枚举值。

属性

Windows 要求

应用功能
networkingVpnProvider

适用于