ContentBySearchWebPart.IsTemplateLocationValid method

Restricts the display template’s location to the Master Page Gallery of the current site collection only.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Protected Overrides Function IsTemplateLocationValid ( _
    templateLink As String _
) As Boolean
'Usage
Dim templateLink As String
Dim returnValue As Boolean

returnValue = Me.IsTemplateLocationValid(templateLink)
protected override bool IsTemplateLocationValid(
    string templateLink
)

Parameters

  • templateLink
    Type: System.String

    The display template’s location.

Return value

Type: System.Boolean

See also

Reference

ContentBySearchWebPart class

ContentBySearchWebPart members

Microsoft.Office.Server.Search.WebControls namespace