VpnManagementAgent.DisconnectProfileAsync(IVpnProfile) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
中斷連線 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
|