Compartilhar via


ContentByQueryWebPart.SortBy Property

Gets or sets the list field name used to sort the set of list items.

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

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property SortBy As String
    Get
    Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As String

value = instance.SortBy

instance.SortBy = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public string SortBy { get; set; }

Property Value

Type: System.String
The list field name used to sort the set of list items.

See Also

Reference

ContentByQueryWebPart Class

ContentByQueryWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

ContentByQueryWebPart