This documentation is archived and is not being maintained.

SharePointProjectItemIconAttribute Class

 

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

Namespace:   Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.SharePoint.SharePointProjectItemIconAttribute

[MetadataAttributeAttribute]
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = false, 
	AllowMultiple = true)]
public sealed class SharePointProjectItemIconAttribute : Attribute

NameDescription
System_CAPS_pubmethodSharePointProjectItemIconAttribute(String)

Initializes a new instance of the SharePointProjectItemIconAttribute class.

NameDescription
System_CAPS_pubpropertyIconResourceName

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.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: