Compartilhar via


SPFieldLookup.FieldRenderingControl Property

Gets the control that is used to render the field on a form page.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Overrides ReadOnly Property FieldRenderingControl As BaseFieldControl
    Get
'Usage
Dim instance As SPFieldLookup
Dim value As BaseFieldControl

value = instance.FieldRenderingControl
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public override BaseFieldControl FieldRenderingControl { get; }

Property Value

Type: Microsoft.SharePoint.WebControls.BaseFieldControl
An Microsoft.SharePoint.WebControls.BaseFieldControl object that represents the rendering control.

Remarks

If the CountRelated property returns true, the object that is returned by the FieldRenderingControl property is type ComputedField. If the AllowMultipleValues property returns true, the object that is returned is type MultipleLookupField. Otherwise, the object that is returned is type LookupField.

See Also

Reference

SPFieldLookup Class

SPFieldLookup Members

Microsoft.SharePoint Namespace