Share via


BaseFieldControl Class

Renders a field on a form page (not a list view page) by using one or more child controls such as a label, link, or text box control.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    Microsoft.SharePoint.WebControls.SPControl
      Microsoft.SharePoint.WebControls.TemplateBasedControl
        Microsoft.SharePoint.WebControls.FormComponent
          Microsoft.SharePoint.WebControls.FieldMetadata
            Microsoft.SharePoint.WebControls.BaseFieldControl
              

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 MustInherit Class BaseFieldControl _
    Inherits FieldMetadata _
    Implements IValidator
'Usage
Dim instance As BaseFieldControl
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class BaseFieldControl : FieldMetadata, 
    IValidator

Remarks

Use this class as a base class for deriving controls to render specific types of fields on lists forms (but not on list views).

Objects of the BaseFieldControl type are primarily used as the value of the SPField.FieldRenderingControl property.

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

BaseFieldControl Members

Microsoft.SharePoint.WebControls Namespace

Other Resources

How to: Create a Custom Field Type

Custom Field Types

Walkthrough: Creating a Custom Field Type

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    Microsoft.SharePoint.WebControls.SPControl
      Microsoft.SharePoint.WebControls.TemplateBasedControl
        Microsoft.SharePoint.WebControls.FormComponent
          Microsoft.SharePoint.WebControls.FieldMetadata
            Microsoft.SharePoint.WebControls.BaseFieldControl
              CLConfirmationsField
              FreeBusyField
              OverbookField
              Microsoft.SharePoint.WebControls.AllDayEventField
              Microsoft.SharePoint.WebControls.AttachmentsField
              Microsoft.SharePoint.WebControls.AttendeeField
              Microsoft.SharePoint.WebControls.BaseChoiceField
              Microsoft.SharePoint.WebControls.BaseTextField
              Microsoft.SharePoint.WebControls.BooleanField
              Microsoft.SharePoint.WebControls.BusinessDataFieldControl
              Microsoft.SharePoint.WebControls.CalculatedField
              Microsoft.SharePoint.WebControls.ComputedField
              Microsoft.SharePoint.WebControls.CrossProjectLinkField
              Microsoft.SharePoint.WebControls.DateTimeField
              Microsoft.SharePoint.WebControls.FieldValue
              Microsoft.SharePoint.WebControls.FileField
              Microsoft.SharePoint.WebControls.FormField
              Microsoft.SharePoint.WebControls.GuidField
              Microsoft.SharePoint.WebControls.LookupField
              Microsoft.SharePoint.WebControls.ParentInformationField
              Microsoft.SharePoint.WebControls.RatingScaleField
              Microsoft.SharePoint.WebControls.RecurrenceField
              Microsoft.SharePoint.WebControls.UrlField
              Microsoft.SharePoint.WebControls.UserField