SupportedSimulatorAttribute Classe

Définition

Indique qu’une API est prise en charge pour une plateforme spécifiée. Si une version est spécifiée, l’API est disponible à partir de la version du système d’exploitation spécifiée. Plusieurs attributs peuvent être appliqués pour indiquer la prise en charge sur plusieurs systèmes d’exploitation.

[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
Héritage
SupportedSimulatorAttribute
Attributs

Remarques

Contrairement aux attributs de disponibilité standard (tels que SupportedOSPlatformAttribute les attributs), la présence de cet attribut pour certaines plateformes n’implique aucune signification pour d’autres plateformes.

S’il n’existe aucun SupportedSimulatorAttribute ou UnsupportedSimulatorAttribute attribut sur une API, l’API est supposée être disponible dans le simulateur.

Cet attribut sera supprimé si l’application est supprimée.

Constructeurs

Nom Description
SupportedSimulatorAttribute(String)

Initialise un nouvel SupportedSimulatorAttribute attribut.

Propriétés

Nom Description
PlatformName

Nom de la plateforme.

S’applique à