VpnManagementAgent.DisconnectProfileAsync(IVpnProfile) 方法

定義

中斷連線 VPN 設定檔的連線。

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

參數

profile
IVpnProfile

VpnProfile 物件。

傳回

表示錯誤狀態的列舉值。

屬性

Windows 需求

應用程式功能
networkingVpnProvider

適用於