SupportedSimulatorAttribute Osztály

Definíció

Azt jelzi, hogy egy API támogatott egy adott platformon. Ha meg van adva egy verzió, az API a megadott operációsrendszer-verziótól kezdve érhető el. Több attribútum is alkalmazható több operációs rendszer támogatásának jelzésére.

[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
Öröklődés
SupportedSimulatorAttribute
Attribútumok

Megjegyzések

A standard rendelkezésre állási attribútumokkal (például SupportedOSPlatformAttribute attribútumokkal) ellentétben az attribútum jelenléte egyes platformokon nem jelent semmilyen jelentést más platformok számára.

Ha egy API-n nincsenek vagy UnsupportedSimulatorAttribute attribútumok, SupportedSimulatorAttribute a rendszer feltételezi, hogy az API elérhető a szimulátorban.

Ez az attribútum el lesz vágva, ha az alkalmazás levágva van.

Konstruktorok

Name Description
SupportedSimulatorAttribute(String)

Inicializál egy új SupportedSimulatorAttribute attribútumot.

Tulajdonságok

Name Description
PlatformName

A platform neve.

A következőre érvényes: