Compartir a través de


SPDataSourceViewResultItem Class

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

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDataSourceViewResultItem _
    Implements ICustomTypeDescriptor

Dim instance As SPDataSourceViewResultItem
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDataSourceViewResultItem : ICustomTypeDescriptor

Remarks

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.

Thread Safety

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

See Also

Reference

SPDataSourceViewResultItem Members

Microsoft.SharePoint.WebControls Namespace

SPDataSourceViewPropertyDescriptor