ProtectionPolicyManager.RequestAccessAsync 方法

定義

多載

RequestAccessAsync(String, String)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容。

RequestAccessAsync(String, String, ProtectionPolicyAuditInfo)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容。

RequestAccessAsync(String, String, ProtectionPolicyAuditInfo, String)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容。

RequestAccessAsync(String, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容

RequestAccessAsync(String, String)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容。

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

參數

sourceIdentity
String

Platform::String

winrt::hstring

內容受到保護的企業身分識別。 這是受管理的電子郵件地址或網域。 您的應用程式應該使用 IsIdentityManaged 來確認電子郵件地址或網域受到管理。

targetIdentity
String

Platform::String

winrt::hstring

要公開內容的企業身分識別。 這是電子郵件地址或網域。

傳回

ProtectionPolicyEvaluationResult列舉的值,這是要求的結果。

屬性

備註

從前景應用程式的主要 UI 執行緒呼叫此方法。

另請參閱

適用於

RequestAccessAsync(String, String, ProtectionPolicyAuditInfo)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容。

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

參數

sourceIdentity
String

Platform::String

winrt::hstring

內容受到保護的企業身分識別。 這是受管理的電子郵件地址或網域。 您的應用程式應該使用 IsIdentityManaged 來確認電子郵件地址或網域受到管理。

targetIdentity
String

Platform::String

winrt::hstring

要公開內容的企業身分識別。 這是電子郵件地址或網域。

auditInfo
ProtectionPolicyAuditInfo

稽核資訊物件; ProtectionPolicyAuditInfo的實例。

傳回

ProtectionPolicyEvaluationResult列舉的值,這是要求的結果。

屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.14393.0 引進)
Windows Mobile Extension SDK (已於 10.0.14393.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v3.0 引進)

備註

從前景應用程式的主要 UI 執行緒呼叫此方法。

另請參閱

適用於

RequestAccessAsync(String, String, ProtectionPolicyAuditInfo, String)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容。

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

參數

sourceIdentity
String

Platform::String

winrt::hstring

內容受到保護的企業身分識別。 這是受管理的電子郵件地址或網域。 您的應用程式應該使用 IsIdentityManaged 來確認電子郵件地址或網域受到管理。

targetIdentity
String

Platform::String

winrt::hstring

要公開內容的企業身分識別。 這是電子郵件地址或網域。

auditInfo
ProtectionPolicyAuditInfo

稽核資訊物件; ProtectionPolicyAuditInfo的實例。

messageFromApp
String

Platform::String

winrt::hstring

將會顯示在同意對話方塊中的訊息,讓使用者可以做出同意決策。

傳回

ProtectionPolicyEvaluationResult列舉的值,這是要求的結果。

屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.14393.0 引進)
Windows Mobile Extension SDK (已於 10.0.14393.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v3.0 引進)

備註

從前景應用程式的主要 UI 執行緒呼叫此方法。

另請參閱

適用於

RequestAccessAsync(String, String, ProtectionPolicyAuditInfo, String, ProtectionPolicyRequestAccessBehavior)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

要求存取身分識別的企業受保護內容

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

參數

sourceIdentity
String

Platform::String

winrt::hstring

內容受到保護的企業身分識別。

targetIdentity
String

Platform::String

winrt::hstring

要公開內容的企業身分識別。 這是電子郵件地址或網域。

auditInfo
ProtectionPolicyAuditInfo

稽核資訊物件; ProtectionPolicyAuditInfo的實例。

messageFromApp
String

Platform::String

winrt::hstring

將會顯示在同意對話方塊中的訊息,讓使用者可以做出同意決策。

behavior
ProtectionPolicyRequestAccessBehavior

定義如何覆寫預設原則行為的常數。

傳回

ProtectionPolicyEvaluationResult列舉的值,這是要求的結果。

屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.15063.0 引進)
Windows Mobile Extension SDK (已於 10.0.15063.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v4.0 引進)

備註

從前景應用程式的主要 UI 執行緒呼叫此方法。

適用於