CreateMeContactAsync method

ContactStore.CreateMeContactAsync method

Establishes that the specified contact represents the current signed-in user of the device.

Syntax


public IAsyncOperation<StoredContact> CreateMeContactAsync(
  string id
)

Parameters

id

Type: System.String [.NET] | Platform::String [C++]

The ID of the contact that represents the current signed-in user of the device.

Return value

Type: IAsyncOperation<StoredContact>

An asynchronous operation that returns a StoredContact on successful completion. If you use Asynchronous programming, the result type is StoredContact.

Requirements (Windows 10 device family)

Device family

Mobile, introduced version 10.0.10240.0

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.WinMD

See also

ContactStore
Asynchronous programming

 

 

Show:
© 2016 Microsoft