Share via


NamedPolicyData Class

Definition

Policy data information for mobile device management.

public ref class NamedPolicyData sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class NamedPolicyData final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class NamedPolicyData
Public NotInheritable Class NamedPolicyData
Inheritance
Object Platform::Object IInspectable NamedPolicyData
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

Policy values can be several types, some of which include: integers, strings, booleans, and binaries. Note that each policy supports one data type, and the policy data type cannot change once it's defined.

Properties

Area

Gets the MDM policy area name.

IsManaged

Determines whether an MDM policy is actively managed or not.

IsUserPolicy

Determines whether an MDM policy is a user policy or not.

Kind

Gets the type of the MDM policy value.

Name

Gets the MDM policy name value.

User

Gets the user's data for the MDM user policy.

Methods

GetBinary()

Gets the binary representation of the MDM policy value.

GetBoolean()

Gets the boolean representation of the MDM policy value.

GetInt32()

Gets the 32 bit integer representation of the MDM policy value.

GetInt64()

Gets the 64 bit integer representation of the MDM policy value.

GetString()

Gets the string representation of the MDM policy value.

Events

Changed

Occurs when the MDM policy is changed.

Applies to