Share via


SearchBoxEx.UseSiteDefaults Property

Gets or sets whether to use the current Web site defaults for the search box Web Part.

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

Syntax

'Declaration
<ResourcesAttribute("SearchBox_UseSiteDefaults", "", "SearchBox_UseSiteDefaults_ToolTip")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property UseSiteDefaults As Boolean
    Get
    Set
'Usage
Dim instance As SearchBoxEx
Dim value As Boolean

value = instance.UseSiteDefaults

instance.UseSiteDefaults = value
[ResourcesAttribute("SearchBox_UseSiteDefaults", "", "SearchBox_UseSiteDefaults_ToolTip")]
[WebPartStorageAttribute(Storage.Shared)]
public bool UseSiteDefaults { get; set; }

Property Value

Type: System.Boolean
true to use Web site defaults; otherwise, false.

See Also

Reference

SearchBoxEx Class

SearchBoxEx Members

Microsoft.SharePoint.Portal.WebControls Namespace