Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPList.GetDistinctFieldValues method

NOTE: This API is now obsolete.

Returns a two-dimensional object that represents an array of field values in which data duplication within a specified field in the list is eliminated and each value returned is unique.

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

[ObsoleteAttribute("Use SPList.GetItems(SPQuery) instead.")]
public uint GetDistinctFieldValues(
	SPField field,
	out Object[,] columnItems


Type: Microsoft.SharePoint.SPField

A SPField object that represents the field from which the duplicates are to be removed.

Type: [,]

A two-dimensional object array that is passed as an out parameter and that returns the values.

Return value

Type: System.UInt32
Returns an UInt32 An unsigned 32-bit integer that specifies the number of field values represented in the array.


Field is null.


Cannot get distinct values.

Type is not Text, Number, Currency, DateTime, or Boolean.

© 2015 Microsoft