SPMobileBaseChoiceField.OptionNumberLimit, propriété (Microsoft.SharePoint.MobileControls)

Windows SharePoint Services 3
Gets the maximum number of choices the field can offer to users.

Espace de noms : Microsoft.SharePoint.MobileControls
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)

public int OptionNumberLimit { get; }

Valeur de la propriété

A Int32 that represents the maximum number of options, set in the mobile web.config file, that the field presents to users.

To use this property, you must insert an add element into the mobile web.config file (see example) and then override OptionNumberLimitKey to return the value that you assign to the key attribute of the element.

The following is an example of an add element that sets a limit on the number of options a field class derived from SPMobileBaseChoiceField can have.

<add key="mobile_My_Custom_choicefieldoptionnumberlimit" value="10"  />