SupportedSimulatorAttribute クラス

定義

指定したプラットフォームで 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

プラットフォームの名前。

適用対象