SharePointProjectItemIconAttribute 类

定义

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

public ref class SharePointProjectItemIconAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class SharePointProjectItemIconAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type SharePointProjectItemIconAttribute = class
    inherit Attribute
Public NotInheritable Class SharePointProjectItemIconAttribute
Inherits Attribute
继承
SharePointProjectItemIconAttribute
属性

注解

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

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

构造函数

SharePointProjectItemIconAttribute(String)

初始化 SharePointProjectItemIconAttribute 类的新实例。

属性

IconResourceName

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

适用于