ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) 方法

定義

注意

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

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

取得指定子或次要識別的父或主要識別。

public:
 static Platform::String ^ GetPrimaryManagedIdentityForIdentity(Platform::String ^ identity);
 static winrt::hstring GetPrimaryManagedIdentityForIdentity(winrt::hstring const& identity);
public static string GetPrimaryManagedIdentityForIdentity(string identity);
function getPrimaryManagedIdentityForIdentity(identity)
Public Shared Function GetPrimaryManagedIdentityForIdentity (identity As String) As String

參數

identity
String

Platform::String

winrt::hstring

您想要用來取得父或主要身分識別的子或次要身分識別。

傳回

String

Platform::String

winrt::hstring

父或主要身分識別。

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 引進)

備註

大部分的原則都有身分識別清單。 主要身分識別通常會先出現在該清單中。 次要身分識別通常會出現在主要身分識別之後。 這些次要身分識別的意義是「由主要身分識別所擁有」。

適用於