Språk

SupportedSimulatorAttribute Klass

Definition

Anger att ett API stöds för en angiven plattform. Om en version anges är API:et tillgängligt från och med den angivna os-versionen. Flera attribut kan användas för att ange stöd för flera operativsystem.

[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
Arv
SupportedSimulatorAttribute
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
SupportedSimulatorAttribute(String)

Initierar ett nytt SupportedSimulatorAttribute attribut.

Egenskaper

Name Description
PlatformName

Namnet på plattformen.

Gäller för