Share via


ProtectionPolicyManager.IsProtectionEnabled Eigenschaft

Definition

Hinweis

Ab Juli 2022 veraltet Microsoft Windows Information Protection (WIP) und die APIs, die WIP unterstützen. Microsoft unterstützt WEITERHIN WIP für unterstützte Versionen von Windows. Neue Versionen von Windows enthalten keine neuen Funktionen für WIP und werden in zukünftigen Versionen von Windows nicht unterstützt. Weitere Informationen finden Sie unter Ankündigung des Sonnenuntergangs von Windows Information Protection.

Für Ihre Datenschutzanforderungen empfiehlt Microsoft, Microsoft Purview Information Protection und Microsoft Purview Data Loss Prevention zu verwenden. Purview vereinfacht die Konfiguration und bietet erweiterte Funktionen.

Verwenden Sie diese Eigenschaft, um zu bestimmen, ob Windows Information Protection (WIP) auf dem Gerät aktiviert ist.

public:
 static property bool IsProtectionEnabled { bool get(); };
static bool IsProtectionEnabled();
public static bool IsProtectionEnabled { get; }
var boolean = ProtectionPolicyManager.isProtectionEnabled;
Public Shared ReadOnly Property IsProtectionEnabled As Boolean

Eigenschaftswert

Boolean

bool

true , wenn WIP auf dem Gerät aktiviert ist, andernfalls false.

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.10586.0)
Windows Mobile Extension SDK (eingeführt in 10.0.10586.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (eingeführt in v2.0)

Gilt für: