Share via


SPWebTemplate.ImageUrl property

Gets the URL to the image that is used to represent the site definition configuration or Web template in the user interface of SharePoint Foundation.

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

Syntax

'Declaration
Public ReadOnly Property ImageUrl As String
    Get
'Usage
Dim instance As SPWebTemplate
Dim value As String

value = instance.ImageUrl
public string ImageUrl { get; }

Property value

Type: System.String
A String that represents the URL as a virtual directory beginning with "/_layouts/".

Remarks

If the SPWebTemplate represents a site definition configuration, this property corresponds to the ImageUrl attribute of a Configuration element in a WebTemp*.xml file. (See WebTemp.xml for more information.)

If the SPWebTemplate represents a Web template, this property corresponds to the ImageUrl attribute of the WebTemplate element in a elements.xml file contained in the .wsp file that stores the Web template.

See also

Reference

SPWebTemplate class

SPWebTemplate members

Microsoft.SharePoint namespace

Other resources

WebTemp.xml

Collaborative Application Markup Language (CAML)

Custom Site Templates

Site Definitions and Configurations