SharePointProjectItemIconAttribute 类

定义

指定针对自定义项目项类型要在解决方案资源管理器中显示的图标。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class SharePointProjectItemIconAttribute : Attribute
继承
SharePointProjectItemIconAttribute
属性

注解

将此特性应用于接口的实现 ISharePointProjectItemTypeProvider ,以指定要为项目项类型显示的图标。 有关详细信息,请参阅如何:定义 SharePoint 项目项类型

为图标使用嵌入的24位 .bmp 或 .ico 资源,将洋红色(255,0255)作为透明色。 建议的图标大小为16像素宽 x 16 像素高。

构造函数

SharePointProjectItemIconAttribute(String)

初始化 SharePointProjectItemIconAttribute 类的新实例。

属性

IconResourceName

获取或设置要用作自定义项目项类型图标的嵌入式 .bmp 或 .ico 资源的命名空间限定的名称。

适用于