ProtectionPolicyManager.RequestAccessForAppAsync Methode

Definition

Überlädt

RequestAccessForAppAsync(String, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

RequestAccessForAppAsync(String, String, ProtectionPolicyAuditInfo, String)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

RequestAccessForAppAsync(String, String, ProtectionPolicyAuditInfo)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

RequestAccessForAppAsync(String, String)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

RequestAccessForAppAsync(String, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

public:
 static IAsyncOperation<ProtectionPolicyEvaluationResult> ^ RequestAccessForAppAsync(Platform::String ^ sourceIdentity, Platform::String ^ appPackageFamilyName, ProtectionPolicyAuditInfo ^ auditInfo, Platform::String ^ messageFromApp, ProtectionPolicyRequestAccessBehavior behavior);
/// [Windows.Foundation.Metadata.Overload("RequestAccessForAppWithBehaviorAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(winrt::hstring const& sourceIdentity, winrt::hstring const& appPackageFamilyName, ProtectionPolicyAuditInfo const& auditInfo, winrt::hstring const& messageFromApp, ProtectionPolicyRequestAccessBehavior const& behavior);
[Windows.Foundation.Metadata.Overload("RequestAccessForAppWithBehaviorAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(string sourceIdentity, string appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo, string messageFromApp, ProtectionPolicyRequestAccessBehavior behavior);
function requestAccessForAppAsync(sourceIdentity, appPackageFamilyName, auditInfo, messageFromApp, behavior)
Public Shared Function RequestAccessForAppAsync (sourceIdentity As String, appPackageFamilyName As String, auditInfo As ProtectionPolicyAuditInfo, messageFromApp As String, behavior As ProtectionPolicyRequestAccessBehavior) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)

Parameter

sourceIdentity
String

Platform::String

winrt::hstring

Die Unternehmensidentität, für die der Inhalt geschützt ist. Dies ist eine E-Mail-Adresse oder Domäne, die verwaltet wird.

appPackageFamilyName
String

Platform::String

winrt::hstring

Die Unternehmensidentität, für die der Inhalt offengelegt wird. Dies ist eine E-Mail-Adresse oder Domäne.

auditInfo
ProtectionPolicyAuditInfo

Ein Überwachungsinformationsobjekt; eine instance von ProtectionPolicyAuditInfo.

messageFromApp
String

Platform::String

winrt::hstring

Eine Meldung, die im Zustimmungsdialogfeld angezeigt wird, damit der Benutzer eine Zustimmungsentscheidung treffen kann.

behavior
ProtectionPolicyRequestAccessBehavior

Eine Konstante, die definiert, wie Sie das Standardrichtlinienverhalten überschreiben möchten.

Gibt zurück

Ein Wert der ProtectionPolicyEvaluationResult-Enumeration , der das Ergebnis der Abfrage ist.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.15063.0)
Windows Mobile Extension SDK (eingeführt in 10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (eingeführt in v4.0)

Gilt für:

RequestAccessForAppAsync(String, String, ProtectionPolicyAuditInfo, String)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

public:
 static IAsyncOperation<ProtectionPolicyEvaluationResult> ^ RequestAccessForAppAsync(Platform::String ^ sourceIdentity, Platform::String ^ appPackageFamilyName, ProtectionPolicyAuditInfo ^ auditInfo, Platform::String ^ messageFromApp);
/// [Windows.Foundation.Metadata.Overload("RequestAccessForAppWithMessageAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(winrt::hstring const& sourceIdentity, winrt::hstring const& appPackageFamilyName, ProtectionPolicyAuditInfo const& auditInfo, winrt::hstring const& messageFromApp);
[Windows.Foundation.Metadata.Overload("RequestAccessForAppWithMessageAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(string sourceIdentity, string appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo, string messageFromApp);
function requestAccessForAppAsync(sourceIdentity, appPackageFamilyName, auditInfo, messageFromApp)
Public Shared Function RequestAccessForAppAsync (sourceIdentity As String, appPackageFamilyName As String, auditInfo As ProtectionPolicyAuditInfo, messageFromApp As String) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)

Parameter

sourceIdentity
String

Platform::String

winrt::hstring

Die Unternehmensidentität, für die der Inhalt geschützt ist. Dies ist eine E-Mail-Adresse oder Domäne, die verwaltet wird. Ihre App sollte IsIdentityManaged verwenden, um zu bestätigen, dass eine E-Mail-Adresse oder Domäne verwaltet wird.

appPackageFamilyName
String

Platform::String

winrt::hstring

Die Unternehmensidentität, für die der Inhalt offengelegt wird. Dies ist eine E-Mail-Adresse oder Domäne.

auditInfo
ProtectionPolicyAuditInfo

Ein Überwachungsinformationsobjekt; eine instance von ProtectionPolicyAuditInfo.

messageFromApp
String

Platform::String

winrt::hstring

Eine Meldung, die im Zustimmungsdialogfeld angezeigt wird, damit der Benutzer eine Zustimmungsentscheidung treffen kann.

Gibt zurück

Ein Wert der ProtectionPolicyEvaluationResult-Enumeration , der das Ergebnis der Abfrage ist.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.14393.0)
Windows Mobile Extension SDK (eingeführt in 10.0.14393.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (eingeführt in v3.0)

Weitere Informationen

Gilt für:

RequestAccessForAppAsync(String, String, ProtectionPolicyAuditInfo)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

public:
 static IAsyncOperation<ProtectionPolicyEvaluationResult> ^ RequestAccessForAppAsync(Platform::String ^ sourceIdentity, Platform::String ^ appPackageFamilyName, ProtectionPolicyAuditInfo ^ auditInfo);
/// [Windows.Foundation.Metadata.Overload("RequestAccessForAppWithAuditingInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(winrt::hstring const& sourceIdentity, winrt::hstring const& appPackageFamilyName, ProtectionPolicyAuditInfo const& auditInfo);
[Windows.Foundation.Metadata.Overload("RequestAccessForAppWithAuditingInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(string sourceIdentity, string appPackageFamilyName, ProtectionPolicyAuditInfo auditInfo);
function requestAccessForAppAsync(sourceIdentity, appPackageFamilyName, auditInfo)
Public Shared Function RequestAccessForAppAsync (sourceIdentity As String, appPackageFamilyName As String, auditInfo As ProtectionPolicyAuditInfo) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)

Parameter

sourceIdentity
String

Platform::String

winrt::hstring

Die Unternehmensidentität, für die der Inhalt geschützt ist. Dies ist eine E-Mail-Adresse oder Domäne, die verwaltet wird. Ihre App kann IsIdentityManaged verwenden, um zu bestätigen, dass eine E-Mail-Adresse oder Domäne verwaltet wird.

appPackageFamilyName
String

Platform::String

winrt::hstring

Die Beschreibung des Familiennamens des App-Pakets.

auditInfo
ProtectionPolicyAuditInfo

Ein Überwachungsinformationsobjekt; eine instance von ProtectionPolicyAuditInfo.

Gibt zurück

Ein Wert der ProtectionPolicyEvaluationResult-Enumeration , der das Ergebnis der Abfrage ist.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.14393.0)
Windows Mobile Extension SDK (eingeführt in 10.0.14393.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (eingeführt in v3.0)

Weitere Informationen

Gilt für:

RequestAccessForAppAsync(String, String)

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.

Anfordern des Zugriffs auf unternehmensgeschützte Inhalte für eine bestimmte Ziel-App.

public:
 static IAsyncOperation<ProtectionPolicyEvaluationResult> ^ RequestAccessForAppAsync(Platform::String ^ sourceIdentity, Platform::String ^ appPackageFamilyName);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(winrt::hstring const& sourceIdentity, winrt::hstring const& appPackageFamilyName);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Overload("RequestAccessForAppAsync")]
 static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(winrt::hstring const& sourceIdentity, winrt::hstring const& appPackageFamilyName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(string sourceIdentity, string appPackageFamilyName);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Overload("RequestAccessForAppAsync")]
public static IAsyncOperation<ProtectionPolicyEvaluationResult> RequestAccessForAppAsync(string sourceIdentity, string appPackageFamilyName);
function requestAccessForAppAsync(sourceIdentity, appPackageFamilyName)
Public Shared Function RequestAccessForAppAsync (sourceIdentity As String, appPackageFamilyName As String) As IAsyncOperation(Of ProtectionPolicyEvaluationResult)

Parameter

sourceIdentity
String

Platform::String

winrt::hstring

Die Unternehmensidentität, für die der Inhalt geschützt ist. Dies ist eine E-Mail-Adresse oder Domäne, die verwaltet wird. Ihre App kann IsIdentityManaged verwenden, um zu bestätigen, dass eine E-Mail-Adresse oder Domäne verwaltet wird.

appPackageFamilyName
String

Platform::String

winrt::hstring

Die Beschreibung des Familiennamens des App-Pakets.

Gibt zurück

Ein Wert der ProtectionPolicyEvaluationResult-Enumeration , der das Ergebnis der Abfrage ist.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.10586.0)
Windows Mobile Extension SDK (eingeführt in 10.0.10586.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (eingeführt in v2.0)

Weitere Informationen

Gilt für: