Partilhar via


SPHtmlSelect Class

Represents an HTML Select control, with extended behavior added by SharePoint. In addition to the normal behavior of the HTML Select control, SharePoint adds the ability to add or remove choices, move choices between SPHtmlSelect controls using buttons, and select multiple choices in multiple SPHtmlSelect controls. This control is intended to be used within a GroupedItemPicker control to represent the Select boxes.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.HtmlControls.HtmlControl
      System.Web.UI.HtmlControls.HtmlContainerControl
        System.Web.UI.HtmlControls.HtmlSelect
          Microsoft.SharePoint.WebControls.SPHtmlSelect

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPHtmlSelect _
    Inherits HtmlSelect
'Usage
Dim instance As SPHtmlSelect
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPHtmlSelect : HtmlSelect

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

SPHtmlSelect Members

Microsoft.SharePoint.WebControls Namespace