Udostępnij za pośrednictwem


ContactPicker.SelectionMode Property

Definition

Controls whether the Contact Picker shows contacts as a complete entity or as a collection of fields.

Note

This property is no longer available starting with Windows 10.

public:
 property ContactSelectionMode SelectionMode { ContactSelectionMode get(); void set(ContactSelectionMode value); };
ContactSelectionMode SelectionMode();

void SelectionMode(ContactSelectionMode value);
public ContactSelectionMode SelectionMode { get; set; }
var contactSelectionMode = contactPicker.selectionMode;
contactPicker.selectionMode = contactSelectionMode;
Public Property SelectionMode As ContactSelectionMode

Property Value

The mode for the Contact Picker user interface. You can set this to Contacts or Fields.

Windows requirements

App capabilities
contactsSystem

Remarks

A contact can contain a lot of information. If you want all of this information, set the SelectionMode property to return the entire contact. If you are only interested in specific fields, set this property to return only a selection of fields, then use the DesiredFields property to specify which fields you want.

Use the ContactSelectionMode enumeration to set the value of this property.

Applies to