SupportedSimulatorAttribute Klasse

Definition

Gibt an, dass eine API für eine angegebene Plattform unterstützt wird. Wenn eine Version angegeben ist, ist die API ab der angegebenen Betriebssystemversion verfügbar. Es können mehrere Attribute angewendet werden, um die Unterstützung auf mehreren Betriebssystemen anzugeben.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=true)]
public sealed class SupportedSimulatorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=true)>]
type SupportedSimulatorAttribute = class
    inherit Attribute
Vererbung
SupportedSimulatorAttribute
Attribute

Hinweise

Im Gegensatz zu Standardverfügbarkeitsattributen (z SupportedOSPlatformAttribute . B. Attributen) bedeutet das Vorhandensein dieses Attributs für einige Plattformen keine Bedeutung für andere Plattformen.

Wenn in einer API keine SupportedSimulatorAttribute Attribute vorhanden UnsupportedSimulatorAttribute sind, wird davon ausgegangen, dass die API im Simulator verfügbar ist.

Dieses Attribut wird entfernt, wenn die App gekürzt wird.

Konstruktoren

Name Beschreibung
SupportedSimulatorAttribute(String)

Initialisiert ein neues SupportedSimulatorAttribute Attribut.

Eigenschaften

Name Beschreibung
PlatformName

Der Name der Plattform.

Gilt für: