UnsupportedSimulatorAttribute Klasa

Definicja

Wskazuje, że interfejs API nie jest obsługiwany w symulatorze dla określonej platformy. Można zastosować wiele atrybutów, aby wskazać brak obsługi na wielu platformach.

[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
Dziedziczenie
UnsupportedSimulatorAttribute
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
UnsupportedSimulatorAttribute(String)

Inicjuje nowy UnsupportedSimulatorAttribute atrybut.

Właściwości

Nazwa Opis
PlatformName

Nazwa platformy.

Dotyczy