Partager via


SearchResults.SearchResultDateTimeFormat, propriété (Microsoft.SharePoint.Portal.WebControls)

Gets or sets the display format for the date and time.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
<DefaultValueAttribute(QueryResultsDateTimeFormatType.Standard)> _
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("SearchResults_DataTimeFormat_PropertyName", "Webpart__Custome_Property_Text", "SearchResults_DataTimeFormat_PropertyDescription")> _
Public Property SearchResultDateTimeFormat As QueryResultsDateTimeFormatType
'Utilisation
Dim instance As SearchResults
Dim value As QueryResultsDateTimeFormatType

value = instance.SearchResultDateTimeFormat

instance.SearchResultDateTimeFormat = value
[DefaultValueAttribute(QueryResultsDateTimeFormatType.Standard)] 
[WebPartStorageAttribute(Storage.Shared)] 
[ResourcesAttribute("SearchResults_DataTimeFormat_PropertyName", "Webpart__Custome_Property_Text", "SearchResults_DataTimeFormat_PropertyDescription")] 
public QueryResultsDateTimeFormatType SearchResultDateTimeFormat { get; set; }

Valeur de la propriété

Member of the Microsoft.SharePoint.Portal.WebControls.QueryResultsDateTimeFormatType enumeration that determines the display format for the date and time.

Remarques

The SearchResultDateTimeFormat property is read/write. Possible values for this property are SearchResultDateTimeFormat.Standard and SearchResultDateTimeFormat.Customized. The standard format displays date and time in short date format. The customized format is language specific.

Voir aussi

Référence

SearchResults, classe
Membres SearchResults
Microsoft.SharePoint.Portal.WebControls, espace de noms