SupportedSimulatorAttribute Classe

Definizione

Indica che un'API è supportata per una piattaforma specificata. Se viene specificata una versione, l'API è disponibile a partire dalla versione del sistema operativo specificata. È possibile applicare più attributi per indicare il supporto in più sistemi operativi.

[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
Ereditarietà
SupportedSimulatorAttribute
Attributi

Commenti

Contrariamente agli attributi di disponibilità standard (ad esempio SupportedOSPlatformAttribute gli attributi), la presenza di questo attributo per alcune piattaforme non implica alcun significato per altre piattaforme.

Se non SupportedSimulatorAttribute sono presenti attributi o UnsupportedSimulatorAttribute in un'API, si presuppone che l'API sia disponibile nel simulatore.

Questo attributo verrà eliminato se l'app viene tagliata.

Costruttori

Nome Descrizione
SupportedSimulatorAttribute(String)

Inizializza un nuovo SupportedSimulatorAttribute attributo.

Proprietà

Nome Descrizione
PlatformName

Nome della piattaforma.

Si applica a