Jaa


IContactFieldFactory.CreateField Method

Definition

Overloads

CreateField(String, ContactFieldType)

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

CreateField(String, ContactFieldType, ContactFieldCategory)

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

CreateField(String, String, ContactFieldType, ContactFieldCategory)

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

CreateField(String, ContactFieldType)

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

public:
 ContactField ^ CreateField(Platform::String ^ value, ContactFieldType type);
/// [Windows.Foundation.Metadata.Overload("CreateField_Default")]
ContactField CreateField(winrt::hstring const& value, ContactFieldType const& type);
[Windows.Foundation.Metadata.Overload("CreateField_Default")]
public ContactField CreateField(string value, ContactFieldType type);
function createField(value, type)
Public Function CreateField (value As String, type As ContactFieldType) As ContactField

Parameters

value
String

Platform::String

winrt::hstring

The value for the field.

type
ContactFieldType

The type of field.

Returns

A field that you can add to a Contact object.

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

CreateField(String, ContactFieldType, ContactFieldCategory)

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

public:
 ContactField ^ CreateField(Platform::String ^ value, ContactFieldType type, ContactFieldCategory category);
/// [Windows.Foundation.Metadata.Overload("CreateField_Category")]
ContactField CreateField(winrt::hstring const& value, ContactFieldType const& type, ContactFieldCategory const& category);
[Windows.Foundation.Metadata.Overload("CreateField_Category")]
public ContactField CreateField(string value, ContactFieldType type, ContactFieldCategory category);
function createField(value, type, category)
Public Function CreateField (value As String, type As ContactFieldType, category As ContactFieldCategory) As ContactField

Parameters

value
String

Platform::String

winrt::hstring

The value of the field.

type
ContactFieldType

The type of field.

category
ContactFieldCategory

The category the field belongs to.

Returns

A field that you can add to a Contact object.

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

CreateField(String, String, ContactFieldType, ContactFieldCategory)

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

public:
 ContactField ^ CreateField(Platform::String ^ name, Platform::String ^ value, ContactFieldType type, ContactFieldCategory category);
/// [Windows.Foundation.Metadata.Overload("CreateField_Custom")]
ContactField CreateField(winrt::hstring const& name, winrt::hstring const& value, ContactFieldType const& type, ContactFieldCategory const& category);
[Windows.Foundation.Metadata.Overload("CreateField_Custom")]
public ContactField CreateField(string name, string value, ContactFieldType type, ContactFieldCategory category);
function createField(name, value, type, category)
Public Function CreateField (name As String, value As String, type As ContactFieldType, category As ContactFieldCategory) As ContactField

Parameters

name
String

Platform::String

winrt::hstring

The name of the field.

value
String

Platform::String

winrt::hstring

The value the field contains.

type
ContactFieldType

The type of field.

category
ContactFieldCategory

The category the field belongs to.

Returns

A field that you can add to a Contact object.

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to