Export (0) Print
Expand All

SPDataSourceViewResultItem class

Provides custom type information for result item objects that are returned by the SPDataSourceView class.

System.Object
  Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem

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

public sealed class SPDataSourceViewResultItem : ICustomTypeDescriptor

This class is used by developers of data-bound controls. It is not intended for use as a programmable object in page code.

The SPDataSourceViewResultItem class provides a wrapper for objects that are returned by an SPDataSourceView object as the result of a query. Result objects can include instances of the SPListItem class, the SPList class, and the SPWeb class. None of these data types implements the ICustomTypeDescriptor interface, but the interface is required for interaction with data-bound controls. Therefore, when an SPDataSourceView object returns data to a data-bound control, it wraps each result item in an instance of the SPDataSourceViewResultItem class, which does implement the ICustomTypeDescriptor interface. The actual result item can be accessed through the ResultItem property of the SPDataSourceViewResultItem object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2014 Microsoft