共用方式為


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資源作為圖示,並搭配 magenta (255,0,255) 作為透明色彩。 圖示的建議大小為 16 像素寬 16 像素高。

建構函式

SharePointProjectItemIconAttribute(String)

初始化 SharePointProjectItemIconAttribute 類別的新執行個體。

屬性

IconResourceName

取得或設定內嵌 .bmp 或 .ico 資源的命名空間限定名稱,以用作自訂專案項目類型的圖示。

適用於