Lenguaje

UnsupportedSimulatorAttribute Clase

Definición

Indica que no se admite una API en el simulador para la plataforma especificada. Se pueden aplicar varios atributos para indicar la falta de compatibilidad en varias plataformas.

[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
Herencia
UnsupportedSimulatorAttribute
Atributos

Comentarios

Al contrario que los atributos de disponibilidad estándar (como SupportedOSPlatformAttribute los atributos), la presencia de este atributo para algunas plataformas no implica ningún significado para otras plataformas.

Si no hay atributos SupportedSimulatorAttribute o UnsupportedSimulatorAttribute en una API, se supone que la API está disponible en el simulador.

Este atributo se recortará si se recorta la aplicación.

Constructores

Nombre Description
UnsupportedSimulatorAttribute(String)

Inicializa un nuevo UnsupportedSimulatorAttribute atributo.

Propiedades

Nombre Description
PlatformName

Nombre de la plataforma.

Se aplica a