SearchBoxEx.DisplaySubmittedSearch, propriété (Microsoft.SharePoint.Portal.WebControls)
Gets or sets a Boolean value indicating whether the search terms are displayed in the search box Web Part.
Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
<DefaultValueAttribute(True)> _
<ResourcesAttribute("SearchBox_DisplaySubmittedSearch", "", "SearchBox_DisplaySubmittedSearch_ToolTip")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property DisplaySubmittedSearch As Boolean
'Utilisation
Dim instance As SearchBoxEx
Dim value As Boolean
value = instance.DisplaySubmittedSearch
instance.DisplaySubmittedSearch = value
[DefaultValueAttribute(true)]
[ResourcesAttribute("SearchBox_DisplaySubmittedSearch", "", "SearchBox_DisplaySubmittedSearch_ToolTip")]
[WebPartStorageAttribute(Storage.Shared)]
public bool DisplaySubmittedSearch { get; set; }
Valeur de la propriété
true if the search terms are displayed in the search box Web Part; otherwise, false.
Remarques
This setting is for the search terms previously submitted by the user or appended to the query, so it applies to instances of the search box Web Part used on search results pages.
Voir aussi
Référence
SearchBoxEx, classe
Membres SearchBoxEx
Microsoft.SharePoint.Portal.WebControls, espace de noms