ResolutionGroupNameAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
アセンブリ内の効果の解決グループ名を指定します。
public ref class ResolutionGroupNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class ResolutionGroupNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
type ResolutionGroupNameAttribute = class
inherit Attribute
Public NotInheritable Class ResolutionGroupNameAttribute
Inherits Attribute
- 継承
-
ResolutionGroupNameAttribute
- 属性
注釈
開発者は、ResolutionGroupNameAttributeに指定した名前のスコープに対して一意の名前をExportEffectAttributeに指定する必要があります。
Resolve(String) メソッドは、名前 (解決グループ名)、'.'、およびExportEffectAttributeに指定された一意の名前を連結した文字列を受け取り、指定した効果を返します。
たとえば、次の宣言を使用します。
[assembly: ResolutionGroupName ("com.YourCompany")]
[assembly: ExportEffect (typeof (ShadowEffect), "ShadowEffect")]
次のコードは、ボタンに効果を追加します。
[var button = new Button { Text = "I have a shadow" };
button.Effects.Add (Effect.Resolve ("com.YourCompany.ShadowEffect"));
コンストラクター
| 名前 | 説明 |
|---|---|
| ResolutionGroupNameAttribute(String) |
指定した名前の新しい ResolutionGroupNameAttribute を作成します。 |