Share via


SPView.MobileSimpleViewField property

Gets or sets the name of the field that appears in the simple mobile view of the list.

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

Syntax

'Declaration
Public Property MobileSimpleViewField As String
    Get
    Set
'Usage
Dim instance As SPView
Dim value As String

value = instance.MobileSimpleViewField

instance.MobileSimpleViewField = value
public string MobileSimpleViewField { get; set; }

Property value

Type: System.String
The name of a field.

Remarks

There are two versions of a list view for mobile devices: simple and detailed. The simple version shows only one field from each list item. The MobileSimpleViewField property specifies which field is used when the default field is not being used. The default is the first mobile-capable field in the view, usually this is the “Title” field. To check whether a field is mobile-capable, call SPMobileUtility.IsViewFieldExcluded(SPField). If the property has never been set, it returns an empty string and the default is used.

There is no CAML equivalent for this property.

See also

Reference

SPView class

SPView members

Microsoft.SharePoint namespace

Other resources

Mobile Views

Special Purpose Mobile Pages