ContactFieldFactory.CreateField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
Windows requirements
App capabilities |
contactsSystem
|
See also
- CreateField(String, ContactFieldType, ContactFieldCategory)
- CreateField(String, String, ContactFieldType, ContactFieldCategory)
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
- Attributes
Windows requirements
App capabilities |
contactsSystem
|
See also
- CreateField(String, ContactFieldType)
- CreateField(String, String, ContactFieldType, ContactFieldCategory)
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
- Attributes
Windows requirements
App capabilities |
contactsSystem
|