ProtectionPolicyManager.GetPrimaryManagedIdentityForNetworkEndpointAsync Methode

Definition

Hinweis

Ab Juli 2022 veraltet Microsoft Windows Information Protection (WIP) und die APIs, die WIP unterstützen. Microsoft unterstützt WEITERHIN WIP für unterstützte Versionen von Windows. Neue Versionen von Windows enthalten keine neuen Funktionen für WIP und werden in zukünftigen Versionen von Windows nicht unterstützt. Weitere Informationen finden Sie unter Ankündigung des Sonnenuntergangs von Windows Information Protection.

Für Ihre Datenschutzanforderungen empfiehlt Microsoft, Microsoft Purview Information Protection und Microsoft Purview Data Loss Prevention zu verwenden. Purview vereinfacht die Konfiguration und bietet erweiterte Funktionen.

Gibt die Unternehmensidentität einer Netzwerkressource zurück, wenn sich die Ressource auf einem von der Unternehmensrichtlinie verwalteten Endpunkt befindet.

public:
 static IAsyncOperation<Platform::String ^> ^ GetPrimaryManagedIdentityForNetworkEndpointAsync(HostName ^ endpointHost);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<winrt::hstring> GetPrimaryManagedIdentityForNetworkEndpointAsync(HostName const& endpointHost);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> GetPrimaryManagedIdentityForNetworkEndpointAsync(HostName endpointHost);
function getPrimaryManagedIdentityForNetworkEndpointAsync(endpointHost)
Public Shared Function GetPrimaryManagedIdentityForNetworkEndpointAsync (endpointHost As HostName) As IAsyncOperation(Of String)

Parameter

endpointHost
HostName

Der Hostname oder die IP-Adresse der Netzwerkressource.

Gibt zurück

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Die Unternehmensidentität.

Attribute

Windows-Anforderungen

App-Funktionen
enterpriseDataPolicy

Gilt für: