共用方式為


LayoutsPageBase.MakeImageUrl Method

Returns a virtual directory URL for the specified image file.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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