Udostępnij za pośrednictwem


ContactBatch Class

Definition

Represents a group of Contact objects and server search status.

public ref class ContactBatch sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContactBatch final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContactBatch
Public NotInheritable Class ContactBatch
Inheritance
Object Platform::Object IInspectable ContactBatch
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
contactsSystem

Remarks

If you are searching local contacts, keep processing until you get a ContactBatch that has an empty list of Contacts. If you are searching on a server and you get an empty Contacts list, check the Status to make sure there wasn't a server error.

Properties

Contacts

Gets the list of Contact objects returned by a search operation.

Status

Gets a ContactBatchStatus value that indicates if a search was successful or if there was a server error.

Applies to