SupportedSimulatorAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したプラットフォームで API がサポートされていることを示します。 バージョンが指定されている場合、指定した OS バージョンから API を使用できます。 複数の属性を適用して、複数のオペレーティング システムでのサポートを示すことができます。
[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
- 継承
-
SupportedSimulatorAttribute
- 属性
注釈
標準の可用性属性 ( SupportedOSPlatformAttribute 属性など) とは対照的に、一部のプラットフォームではこの属性が存在しても、他のプラットフォームでは意味がありません。
API に SupportedSimulatorAttribute 属性または UnsupportedSimulatorAttribute 属性がない場合、その API はシミュレーターで使用可能であると見なされます。
アプリがトリミングされると、この属性はトリミングされます。
コンストラクター
| 名前 | 説明 |
|---|---|
| SupportedSimulatorAttribute(String) |
新しい SupportedSimulatorAttribute 属性を初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| PlatformName |
プラットフォームの名前。 |