ContactPickerUI.DesiredFields 属性

定义

指定要在用户选择一个或多个联系人后返回的字段。

注意

在Windows 8.1后,DesiredFields 可能会更改或不可用于发布。 请改用 DesiredFieldsWithContactFieldType

public:
 property IVectorView<Platform::String ^> ^ DesiredFields { IVectorView<Platform::String ^> ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("DesiredFields may be altered or unavailable for releases after Windows 8.1. Instead, use DesiredFieldsWithContactFieldType.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
IVectorView<winrt::hstring> DesiredFields();
/// [get: Windows.Foundation.Metadata.Deprecated("DesiredFields may be altered or unavailable for releases after Windows 8.1. Instead, use DesiredFieldsWithContactFieldType.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
IVectorView<winrt::hstring> DesiredFields();
public IReadOnlyList<string> DesiredFields { [Windows.Foundation.Metadata.Deprecated("DesiredFields may be altered or unavailable for releases after Windows 8.1. Instead, use DesiredFieldsWithContactFieldType.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public IReadOnlyList<string> DesiredFields { [Windows.Foundation.Metadata.Deprecated("DesiredFields may be altered or unavailable for releases after Windows 8.1. Instead, use DesiredFieldsWithContactFieldType.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var iVectorView = contactPickerUI.desiredFields;
Public ReadOnly Property DesiredFields As IReadOnlyList(Of String)

属性值

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

要返回的字段的集合。 可以通过 KnownContactField 类指定所需的字段。

属性

Windows 要求

应用功能
contactsSystem

适用于