This version of Unity is unsupported.
Method group is Obsolete

HolographicSettings.IsContentProtectionEnabled

Obsolete public static bool IsContentProtectionEnabled;

Description

Whether the app is displaying protected content.

When content protection is enabled, rendered content will be visible only in the headset, disabling the Mixed Reality Portal's preview.