Bagikan melalui


VpnManagementAgent.DisconnectProfileAsync(IVpnProfile) Metode

Definisi

Memutuskan sambungan dari profil VPN yang terhubung.

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)

Parameter

profile
IVpnProfile

Objek VpnProfile .

Mengembalikan

Nilai enum yang menunjukkan status kesalahan.

Atribut

Persyaratan Windows

Kemampuan aplikasi
networkingVpnProvider

Berlaku untuk