Język

SupportedSimulatorAttribute Klasa

Definicja

Wskazuje, że interfejs API jest obsługiwany dla określonej platformy. Jeśli określono wersję, interfejs API jest dostępny od określonej wersji systemu operacyjnego. W celu wskazania obsługi wielu systemów operacyjnych można zastosować wiele atrybutów.

[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
Dziedziczenie
SupportedSimulatorAttribute
Atrybuty

Uwagi

W przeciwieństwie do standardowych atrybutów dostępności (takich jak SupportedOSPlatformAttribute atrybuty), obecność tego atrybutu dla niektórych platform nie oznacza żadnego znaczenia dla innych platform.

Jeśli nie SupportedSimulatorAttribute ma atrybutów lub UnsupportedSimulatorAttribute w interfejsie API, zakłada się, że interfejs API jest dostępny w symulatorze.

Ten atrybut zostanie przycięty, jeśli aplikacja zostanie przycięta.

Konstruktory

Nazwa Opis
SupportedSimulatorAttribute(String)

Inicjuje nowy SupportedSimulatorAttribute atrybut.

Właściwości

Nazwa Opis
PlatformName

Nazwa platformy.

Dotyczy