NamedPolicy.GetPolicyFromPathForUser(User, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.