SPFeatureDefinition.GetImageUrl Method

Returns the path to an image file that provides an icon for this Feature.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetImageUrl ( _
    culture As CultureInfo _
) As String
'Usage
Dim instance As SPFeatureDefinition
Dim culture As CultureInfo
Dim returnValue As String

returnValue = instance.GetImageUrl(culture)
public string GetImageUrl(
    CultureInfo culture
)

Parameters

Return Value

Type: System.String
A String representation of the URL path to the image that is the icon for the Feature.

Remarks

The image file is contained within the layouts directory at the following path: Local_Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Template\Layouts. The returned path to the image can be a null reference (Nothing in Visual Basic).

See Also

Reference

SPFeatureDefinition Class

SPFeatureDefinition Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Creating a Feature for the Site Actions Menu in Windows SharePoint Services 3.0