Bagikan melalui


VpnManagementAgent.ConnectProfileAsync(IVpnProfile) Metode

Definisi

Menyambungkan ke profil VPN yang ada.

public:
 virtual IAsyncOperation<VpnManagementErrorStatus> ^ ConnectProfileAsync(IVpnProfile ^ profile) = ConnectProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnManagementErrorStatus> ConnectProfileAsync(IVpnProfile const& profile);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnManagementErrorStatus> ConnectProfileAsync(IVpnProfile profile);
function connectProfileAsync(profile)
Public Function ConnectProfileAsync (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