Version

Item(String) Property

Indexer
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal fieldName As String _
) As FieldSortDescription
public FieldSortDescription Item( 
   string fieldName
) {get;}

Parameters

fieldName
The associated field's name

Property Value

The FieldSortDescription in the collection that is associated with this field.
Remarks

Note: the collection can now contain up to 2 instances of FieldSortDescriptions with the same field (one with its IsGroupBy set to true and the other with its IsGroupBy set to false). This method will return the first instance that matches the field if the isGroupBy parameter is null. In the case where there are 2 instances it will always return the one with its IsGroupBy set to true. This is because the collection is sorted such that all 'groupby' FieldSortDescriptions come before all 'non-groupby' ones.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also