LayoutsPageBase.MakeImageUrl method

Returns a virtual directory URL for the specified image file.

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

Syntax

'Declaration
Protected Shared Function MakeImageUrl ( _
    imageFile As String _
) As String
'Usage
Dim imageFile As String
Dim returnValue As String

returnValue = LayoutsPageBase.MakeImageUrl(imageFile)
protected static string MakeImageUrl(
    string imageFile
)

Parameters

Return value

Type: System.String
A String that represents the URL of the image file.

Remarks

The URL that is returned is "_layouts\images\file_name" where file_name is the name of the file.

See also

Reference

LayoutsPageBase class

LayoutsPageBase members

Microsoft.SharePoint.WebControls namespace