Språk

UnsupportedSimulatorAttribute Klass

Definition

Anger att ett API inte stöds i simulatorn för den angivna plattformen. Flera attribut kan användas för att indikera bristande stöd på flera plattformar.

[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
Arv
UnsupportedSimulatorAttribute
Attribut

Kommentarer

I motsats till standardtillgänglighetsattribut (till exempel SupportedOSPlatformAttribute attribut) innebär förekomsten av det här attributet för vissa plattformar inte någon betydelse för andra plattformar.

Om det inte finns några SupportedSimulatorAttribute eller UnsupportedSimulatorAttribute attribut i ett API antas API:et vara tillgängligt i simulatorn.

Det här attributet kommer att trimmas bort om appen trimmas.

Konstruktorer

Name Description
UnsupportedSimulatorAttribute(String)

Initierar ett nytt UnsupportedSimulatorAttribute attribut.

Egenskaper

Name Description
PlatformName

Namnet på plattformen.

Gäller för