RatedContentRestrictions Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Enthält alle Verhaltensweisen und Funktionen im Zusammenhang mit den Family Safety-Inhaltseinstellungen eines Benutzers.
public ref class RatedContentRestrictions sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RatedContentRestrictions final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class RatedContentRestrictions final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RatedContentRestrictions
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class RatedContentRestrictions
function RatedContentRestrictions(maxAgeRating)
Public NotInheritable Class RatedContentRestrictions
- Vererbung
- Attribute
Windows-Anforderungen
Gerätefamilie |
Windows 10 (eingeführt in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
|
Konstruktoren
RatedContentRestrictions() |
Initialisiert eine neue instance der RatedContentRestrictions-Klasse. |
RatedContentRestrictions(UInt32) |
Initialisiert eine neue instance der Klasse RatedContentRestrictions mit der angegebenen Altersfreigabe, die die App verwendet, um die Inhaltsverwendung einzuschränken. |
Methoden
GetBrowsePolicyAsync() |
Ruft informationen ab, die verwendet werden, filtert den Inhaltskatalog einer App. |
GetRestrictionLevelAsync(RatedContentDescription) |
Ruft die Richtlinie ab, die für einen Inhalt gilt, um Inhalte zu durchsuchen und zu nutzen. |
RequestContentAccessAsync(RatedContentDescription) |
Bestimmt, ob der Benutzer einen Inhalt nutzen darf. |
Ereignisse
RestrictionsChanged |
Ein Ereignishandler, um Apps zu benachrichtigen, wenn Änderungen an den Inhaltseinstellungen des Benutzers vorgenommen werden. |