SearchBoxEx.UseSiteDefaults, propriété (Microsoft.SharePoint.Portal.WebControls)
Gets or sets whether to use the current Web site defaults for 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(False)> _
<ResourcesAttribute("SearchBox_UseSiteDefaults", "", "SearchBox_UseSiteDefaults_ToolTip")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property UseSiteDefaults As Boolean
'Utilisation
Dim instance As SearchBoxEx
Dim value As Boolean
value = instance.UseSiteDefaults
instance.UseSiteDefaults = value
[DefaultValueAttribute(false)]
[ResourcesAttribute("SearchBox_UseSiteDefaults", "", "SearchBox_UseSiteDefaults_ToolTip")]
[WebPartStorageAttribute(Storage.Shared)]
public bool UseSiteDefaults { get; set; }
Valeur de la propriété
true to use Web site defaults; otherwise, false.
Voir aussi
Référence
SearchBoxEx, classe
Membres SearchBoxEx
Microsoft.SharePoint.Portal.WebControls, espace de noms