SupportedSimulatorAttribute Třída

Definice

Označuje, že rozhraní API je podporováno pro zadanou platformu. Pokud je zadaná verze, rozhraní API je k dispozici od zadané verze operačního systému. K označení podpory v několika operačních systémech je možné použít více atributů.

[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
Dědičnost
SupportedSimulatorAttribute
Atributy

Poznámky

Na rozdíl od standardních atributů dostupnosti (například SupportedOSPlatformAttribute atributů) přítomnost tohoto atributu pro některé platformy neznamená žádný význam pro jiné platformy.

Pokud rozhraní API neobsahuje žádné SupportedSimulatorAttribute atributy nebo UnsupportedSimulatorAttribute atributy, předpokládá se, že je rozhraní API dostupné v simulátoru.

Tento atribut se ořízne, pokud je aplikace oříznutá.

Konstruktory

Name Description
SupportedSimulatorAttribute(String)

Inicializuje nový SupportedSimulatorAttribute atribut.

Vlastnosti

Name Description
PlatformName

Název platformy.

Platí pro