ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) Method

Definition

Gets the parent or primary identity of a given child or secondary identity.

public : static Platform::String GetPrimaryManagedIdentityForIdentity(Platform::String identity)
static winrt::hstring GetPrimaryManagedIdentityForIdentity(winrt::hstring identity) const;
public static string GetPrimaryManagedIdentityForIdentity(String identity)
Public Shared Function GetPrimaryManagedIdentityForIdentity(identity As String) As string
var string = Windows.Security.EnterpriseData.ProtectionPolicyManager.getPrimaryManagedIdentityForIdentity(identity);

Parameters

identity
String String String

The child or secondary identity that you want to use to get the parent or primary identity.

Returns

string string string

The parent or primary identity.

Additional features and requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.15063.0) Windows Mobile Extension SDK (introduced v10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced v4)

Remarks

Most policies have a list of identities. The primary identity usually appears first in that list. The secondary identities usually appear after the primary identity. Those secondary identities are, in a sense "owned" by the primary identity.