Udostępnij za pośrednictwem


ContactFieldFactory.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:
 virtual ContactField ^ CreateField(Platform::String ^ value, ContactFieldType type) = CreateField;
/// [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

Contains a field that you can add to a Contact object.

Implements

M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(System.String,Windows.ApplicationModel.Contacts.ContactFieldType) M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(Platform::String,Windows.ApplicationModel.Contacts.ContactFieldType) M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldType)
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:
 virtual ContactField ^ CreateField(Platform::String ^ value, ContactFieldType type, ContactFieldCategory category) = CreateField;
/// [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 for the field.

type
ContactFieldType

The type of field.

category
ContactFieldCategory

The category the field belongs to.

Returns

Contains a field that you can add to a Contact object.

Implements

M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(System.String,Windows.ApplicationModel.Contacts.ContactFieldType,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(Platform::String,Windows.ApplicationModel.Contacts.ContactFieldType,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldType,Windows.ApplicationModel.Contacts.ContactFieldCategory)
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:
 virtual ContactField ^ CreateField(Platform::String ^ name, Platform::String ^ value, ContactFieldType type, ContactFieldCategory category) = CreateField;
/// [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 of the field.

type
ContactFieldType

The type of field.

category
ContactFieldCategory

The category the field belongs to.

Returns

Contains a field that you can add to a Contact object.

Implements

M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(System.String,System.String,Windows.ApplicationModel.Contacts.ContactFieldType,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(Platform::String,Platform::String,Windows.ApplicationModel.Contacts.ContactFieldType,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactFieldFactory.CreateField(winrt::hstring,winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldType,Windows.ApplicationModel.Contacts.ContactFieldCategory)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to