UnsupportedSimulatorAttribute Classe

Définition

Indique qu’une API n’est pas prise en charge dans le simulateur pour la plateforme spécifiée. Plusieurs attributs peuvent être appliqués pour indiquer l’absence de prise en charge sur plusieurs plateformes.

[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 UnsupportedSimulatorAttribute : 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 UnsupportedSimulatorAttribute = class
    inherit Attribute
Héritage
UnsupportedSimulatorAttribute
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
UnsupportedSimulatorAttribute(String)

Initialise un nouvel UnsupportedSimulatorAttribute attribut.

Propriétés

Nom Description
PlatformName

Nom de la plateforme.

S’applique à