Share via


SPMobileComponent.Field Property

Gets or sets the field that is rendered when the SPMobileComponent is a field-rendering control.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public Overridable Property Field As SPField
    Get
    Set

Dim instance As SPMobileComponent
Dim value As SPField

value = instance.Field

instance.Field = value
public virtual SPField Field { get; set; }

Property Value

Type: Microsoft.SharePoint.SPField
An SPField that specifies the field that is rendered when the SPMobileComponent is a field-rendering control.

Remarks

When SPMobileComponent is not a field-rendering control, Field is usually a null reference (Nothing in Visual Basic), but there is no guarantee of this. If any parent of the SPMobileComponent-derived object in the control hierarchy has a non-null Field value, Field has the same value.

See Also

Reference

SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace