Share via


SPWebTemplate.ImageUrl Property

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

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

Syntax

Public ReadOnly Property ImageUrl As String
    Get

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 site template, this property is not directly persisted in the manifest.xml file contained in the .stp file that stores the site template. Instead the value is provided by the site definition configuration that is the foundation of the site that is the source of the site 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