ResolutionGroupNameAttribute クラス

定義

効果名の範囲を提供するグループ名 (一般的には会社名または逆にした会社 URL) を識別する属性。

[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class ResolutionGroupNameAttribute : Attribute
type ResolutionGroupNameAttribute = class
    inherit Attribute
継承
ResolutionGroupNameAttribute
属性

注釈

開発者は、 に ExportEffectAttribute 指定する のスコープで一意の に名前を指定する ResolutionGroupNameAttribute必要があります。 メソッドはResolve(String)、(解決グループ名)'.'、、および に指定された一意の名前を連結nameした文字列を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)

新しい解決グループ名属性を作成します。

適用対象