RequiresServiceAttribute クラス
更新 : 2007 年 11 月
指定されたサービスにそのクラスが依存していることを示します。
名前空間 : Microsoft.Windows.Design
アセンブリ : Microsoft.Windows.Design.Extensibility (Microsoft.Windows.Design.Extensibility.dll 内)
構文
'宣言
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class RequiresServiceAttribute _
Inherits RequirementAttribute
'使用
Dim instance As RequiresServiceAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RequiresServiceAttribute : RequirementAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class RequiresServiceAttribute sealed : public RequirementAttribute
public final class RequiresServiceAttribute extends RequirementAttribute
解説
RequiresServiceAttribute はあらゆる機能プロバイダ、あらゆる機能コネクタ、または機能プロバイダによって提供される選択クラスに適用できます。そのクラスは、必要なすべてのサービスが使用可能になるまでインスタンス化されません。
継承階層
System.Object
System.Attribute
Microsoft.Windows.Design.RequirementAttribute
Microsoft.Windows.Design.RequiresServiceAttribute
スレッド セーフ
この型のすべてのパブリック static (Visual Basic では Shared) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。