Share via


ProtectionPolicyManager.PrimaryManagedIdentity Property

Definition

Note

Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.

For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.

Gets the primary enterprise identity.

public:
 static property Platform::String ^ PrimaryManagedIdentity { Platform::String ^ get(); };
static winrt::hstring PrimaryManagedIdentity();
public static string PrimaryManagedIdentity { get; }
var string = ProtectionPolicyManager.primaryManagedIdentity;
Public Shared ReadOnly Property PrimaryManagedIdentity As String

Property Value

String

Platform::String

winrt::hstring

The primary enterprise identity. This is an email address or domain that is managed. This property returns null if there is no managed identity associated with the ProtectionPolicyManager .

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
Windows Mobile Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v4.0)

Applies to