共用方式為


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

適用於