NamedPolicy.GetPolicyFromPath(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 the valid MDM policy information given a specified policy name and area name.
public:
static NamedPolicyData ^ GetPolicyFromPath(Platform::String ^ area, Platform::String ^ name);
static NamedPolicyData GetPolicyFromPath(winrt::hstring const& area, winrt::hstring const& name);
public static NamedPolicyData GetPolicyFromPath(string area, string name);
function getPolicyFromPath(area, name)
Public Shared Function GetPolicyFromPath (area As String, name As String) As NamedPolicyData
Parameters
- 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 area and name parameters.
Remarks
For a complete list of valid area names and policy names, see the Policy Tables in Policy CSP.