UnsupportedSimulatorAttribute Class

Definition

Indicates that an API is not supported in the simulator for the specified platform. Multiple attributes can be applied to indicate lack of support on multiple platforms.

[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
Inheritance
UnsupportedSimulatorAttribute
Attributes

Remarks

Contrary to standard availability attributes (such as SupportedOSPlatformAttribute attributes), the presence of this attribute for some platforms does not imply any meaning for other platforms.

If there are no SupportedSimulatorAttribute or UnsupportedSimulatorAttribute attributes on an API, the API is assumed to be available in the simulator.

This attribute will be trimmed away if the app is trimmed.

Constructors

Name Description
UnsupportedSimulatorAttribute(String)

Initializes a new UnsupportedSimulatorAttribute attribute.

Properties

Name Description
PlatformName

The name of the platform.

Applies to