다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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