SupportedSimulatorAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that an API is supported for a specified platform. If a version is specified, the API is available starting in the specified OS version. Multiple attributes can be applied to indicate support on multiple operating systems.
[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
- Inheritance
-
SupportedSimulatorAttribute
- 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 |
|---|---|
| SupportedSimulatorAttribute(String) |
Initializes a new SupportedSimulatorAttribute attribute. |
Properties
| Name | Description |
|---|---|
| PlatformName |
The name of the platform. |