Partilhar via


ItemPicker Class

Represents a control that renders the External Data Picker control on the server. This control is used in the new, edit, and view list item forms when the fields in the SharePoint list are of type External Data.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.WebControls.EntityEditor
        Microsoft.SharePoint.WebControls.EntityEditorWithPicker
          Microsoft.SharePoint.WebControls.ItemPicker

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class ItemPicker _
    Inherits EntityEditorWithPicker _
    Implements IDesignerEventAccessor
'Usage
Dim instance As ItemPicker
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ItemPicker : EntityEditorWithPicker, IDesignerEventAccessor

Remarks

This control assumes that the entity is known. Use the EntityPicker user control to select the entity, and then this control to select a specific instance of that entity.

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

ItemPicker Members

Microsoft.SharePoint.WebControls Namespace