Share via


NamedPolicy.GetPolicyFromPathForUser(User, String, String) Method

Definition

Gets a valid MDM user policy given the specified MDM policy name and area name. This gets a policy specific to a user, whereas GetPolicyFromPath gets a global policy.

public:
 static NamedPolicyData ^ GetPolicyFromPathForUser(User ^ user, Platform::String ^ area, Platform::String ^ name);
 static NamedPolicyData GetPolicyFromPathForUser(User const& user, winrt::hstring const& area, winrt::hstring const& name);
public static NamedPolicyData GetPolicyFromPathForUser(User user, string area, string name);
function getPolicyFromPathForUser(user, area, name)
Public Shared Function GetPolicyFromPathForUser (user As User, area As String, name As String) As NamedPolicyData

Parameters

user
User

The user data for user policies.

area
String

Platform::String

winrt::hstring

A string representing the area name for a policy.

name
String

Platform::String

winrt::hstring

A string representing the name of the policy.

Returns

The NamedPolicyData for the policy specified by the user, area, and name parameters.

Applies to

See also