Partilhar via


SPDataSourceViewPropertyDescriptor Class

Describes properties exposed by the SPDataSourceViewResultItem class.

Inheritance Hierarchy

System.Object
  System.ComponentModel.MemberDescriptor
    System.ComponentModel.PropertyDescriptor
      Microsoft.SharePoint.WebControls.SPDataSourceViewPropertyDescriptor

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState := True)> _
Public NotInheritable Class SPDataSourceViewPropertyDescriptor _
    Inherits PropertyDescriptor
'Usage
Dim instance As SPDataSourceViewPropertyDescriptor
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
public sealed class SPDataSourceViewPropertyDescriptor : PropertyDescriptor

Remarks

Note

The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or https://msdn.microsoft.com/en-us/library/ms172338(v=office.14).

This class is used to surface the properties of all types of result item objects that can be returned by the SPDataSourceView class: SPListItem, SPList, and SPWeb.

During data binding the SPDataSourceViewResultItem class is asked for the properties of the result item that it is bound to. When that happens, each of the properties that are returned is an instance of the SPDataSourceViewPropertyDescriptor class.

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

SPDataSourceViewPropertyDescriptor Members

Microsoft.SharePoint.WebControls Namespace

SPDataSourceViewResultItem