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)

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