Compartir a través de


: SearchResults.SearchResultDateTimeFormat (Propiedad) (Microsoft.SharePoint.Portal.WebControls)

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

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
<DefaultValueAttribute(QueryResultsDateTimeFormatType.Standard)> _
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("SearchResults_DataTimeFormat_PropertyName", "Webpart__Custome_Property_Text", "SearchResults_DataTimeFormat_PropertyDescription")> _
Public Property SearchResultDateTimeFormat As QueryResultsDateTimeFormatType
'Uso
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; }

Valor de propiedad

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

Comentarios

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.

Vea también

Referencia

SearchResults (Clase)
SearchResults (Miembros)
Microsoft.SharePoint.Portal.WebControls (Espacio de nombres)