LayoutsPageBase.MakeImageUrl 方法
返回指定的图像文件的虚拟目录 URL。
命名空间: Microsoft.SharePoint.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Shared Function MakeImageUrl ( _
imageFile As String _
) As String
用法
Dim imageFile As String
Dim returnValue As String
returnValue = LayoutsPageBase.MakeImageUrl(imageFile)
protected static string MakeImageUrl(
string imageFile
)
参数
imageFile
类型:System.String图像文件的名称。
返回值
类型:System.String
代表图像文件的 URL String 。
备注
返回的 URL 是"_layouts\images\file_name" file_name所在的文件的名称。