VpnManagementAgent Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ermöglicht das Erstellen, Löschen, Bearbeiten, Verbinden und Trennen von Flows für VPN. Diese können verwendet werden, um den Lebenszyklus eines VPN-Profils zu verwalten und einen benutzerdefinierten VPN-Verbindungs-Manager zu erstellen.
public ref class VpnManagementAgent sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class VpnManagementAgent final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class VpnManagementAgent final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class VpnManagementAgent
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnManagementAgent
Public NotInheritable Class VpnManagementAgent
- Vererbung
- Attribute
Windows-Anforderungen
Gerätefamilie |
Windows 10 (eingeführt in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
|
App-Funktionen |
networkingVpnProvider
|
Konstruktoren
VpnManagementAgent() |
Der Konstruktor ermöglicht es der VPN-App, dieses Objekt zu erstellen. |
Methoden
AddProfileFromObjectAsync(IVpnProfile) |
Erstellt ein neues VPN-Profil basierend auf dem VpnProfile-Eingabeobjekt . |
AddProfileFromXmlAsync(String) |
Erstellt eine neue VPN-Verbindung basierend auf einer ProfileXML-codierten Zeichenfolge (siehe ProfileXML XSD). |
ConnectProfileAsync(IVpnProfile) |
Stellt eine Verbindung mit einem vorhandenen VPN-Profil her. |
ConnectProfileWithPasswordCredentialAsync(IVpnProfile, PasswordCredential) |
Stellt mithilfe eines angegebenen Satz von Kennwortanmeldeinformationen eine Verbindung mit einem VPN-Profil her. |
DeleteProfileAsync(IVpnProfile) |
Löscht ein vorhandenes VPN-Profil. |
DisconnectProfileAsync(IVpnProfile) |
Trennt sich von einem verbundenen VPN-Profil. |
GetProfilesAsync() |
Ruft die Liste der verfügbaren VPN-Profile ab. |
UpdateProfileFromObjectAsync(IVpnProfile) |
Updates ein VPN-Profil (Virtual Private Network) basierend auf einem Eingabeobjekt. |
UpdateProfileFromXmlAsync(String) |
Updates ein vorhandenes VPN-Profil basierend auf einer ProfileXML-codierten Eingabezeichenfolge (siehe ProfileXML XSD). |
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für