Share via


SharePointProjectItemIconAttribute Class

Definition

Specifies the icon to display in Solution Explorer for a custom project item type.

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
Inheritance
SharePointProjectItemIconAttribute
Attributes

Remarks

Apply this attribute to an implementation of the ISharePointProjectItemTypeProvider interface to specify the icon to display for the project item type. For more information, see How to: Define a SharePoint Project Item Type.

Use an embedded 24-bit .bmp or .ico resource for the icon, with magenta (255,0,255) as the transparent color. The recommended size for icons is 16 pixels wide by 16 pixels high.

Constructors

SharePointProjectItemIconAttribute(String)

Initializes a new instance of the SharePointProjectItemIconAttribute class.

Properties

IconResourceName

Gets or sets the namespace qualified name of an embedded .bmp or .ico resource to use as the icon for a custom project item type.

Applies to