ExportEffectAttribute 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用唯一标识符识别 Effect 的特性,可与 Resolve(String) 配合使用以查找效果。
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class ExportEffectAttribute : Attribute
	type ExportEffectAttribute = class
    inherit Attribute
		- 继承
 - 
				System.AttributeExportEffectAttribute
 
- 属性
 - 
			System.AttributeUsageAttribute
 
注解
开发人员必须提供在提供给 ResolutionGroupNameAttribute的值范围内唯一的名称。 方法 Resolve(String) 采用一个字符串,该字符串是提供给 ResolutionGroupNameAttribute、“”.的解析组名称和提供给 ExportEffectAttribute的名称的串联,并返回类型为 effectType的效果。
例如,使用 声明:
[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"));
 构造函数
| ExportEffectAttribute(Type, String) | 
		 创建一个新的 ExportEffectAttribute。  |