連絡人、朋友圈及行事曆Contacts, My People, and calendar

您可以讓使用者存取他們的連絡人和約會,以便彼此分享內容、電子郵件、行事曆資訊或訊息,或是共用您所設計的任何功能。You can let your users access their contacts and appointments so they can share content, email, calendar info, or messages with each other, or whatever functionality you design.

若要查看您的 app 存取連絡人和約會的幾種不同方式,請參閱這些主題:To see a few different ways in which your app can access contacts and appointments, see these topics:

主題Topic 說明Description
選取連絡人Select contacts 在整個 Windows.ApplicationModel.Contacts 命名空間中,有好幾種方法可以用來選取連絡人。Through the Windows.ApplicationModel.Contacts namespace, you have several options for selecting contacts. 我們會在這裡示範如何選取單一連絡人或多位連絡人,也會示範如何設定連絡人選擇器,只抓取您 app 所需的連絡人資訊。Here, we'll show you how to select a single contact or multiple contacts, and we'll show you how to configure the contact picker to retrieve only the contact information that your app needs.
傳送電子郵件Send email 示範如何啟動 [撰寫電子郵件] 對話方塊,讓使用者傳送電子郵件訊息。Shows how to launch the compose email dialog to allow the user to send an email message. 您可以在顯示該對話方塊之前,使用資料預先填入電子郵件的欄位。You can pre-populate the fields of the email with data before showing the dialog. 在使用者點選 [傳送] 按鈕之前,不會將訊息傳送出去。The message will not be sent until the user taps the send button.
傳送 SMS 訊息Send an SMS message 本主題示範如何啟動 [撰寫 SMS] 對話方塊,讓使用者傳送 SMS 訊息。This topic shows you how to launch the compose SMS dialog to allow the user to send an SMS message. 您可以在顯示該對話方塊之前,使用資料預先填入 SMS 的欄位。You can pre-populate the fields of the SMS with data before showing the dialog. 在使用者點選 [傳送] 按鈕之前,不會將訊息傳送出去。The message will not be sent until the user taps the send button.
管理約會Manage appointments 您可以透過 Windows.ApplicationModel.Appointments 命名空間,在使用者的行事曆 app 建立和管理約會。Through the Windows.ApplicationModel.Appointments namespace, you can create and manage appointments in a user's calendar app. 這裡,我們將示範如何建立約會、將約會新增到行事曆 app、在行事曆 app 替換約會,以及從行事曆 app 移除約會。Here, we'll show you how to create an appointment, add it to a calendar app, replace it in the calendar app, and remove it from the calendar app. 同時還會示範如何顯示行事曆 app 的時間範圍,以及建立約會週期物件。We'll also show how to display a time span for a calendar app and create an appointment-recurrence object.
將應用程式連結到連絡人卡片上的動作Connect your app to actions on a contact card 說明如何讓您的 app 顯示在連絡人卡片或迷你連絡人卡片上的動作旁邊。Shows how to make your app appear next to actions on a contact card or mini contact card. 使用者可以選擇您的 app 來執行動作,例如開啟個人資料頁面、撥打電話,或傳送訊息。Users can choose your app to perform an action such as open a profile page, place a call, or send a message.
將朋友圈支援新增至應用程式Adding My People support to an application 顯示如何將朋友圈支援新增至應用程式,以及如何在工作列上釘選與取消釘選連絡人。Shows how to add My People support to an application and how to pin and unpin contacts on the taskbar.
朋友圈分享My People sharing 顯示如何新增朋友圈分享的支援,讓使用者可以將內容與其釘選的連絡人分享,做法是將檔案從 [檔案總管] 拖曳到 [朋友圈] 圖釘。Shows how to add support for My People sharing, which lets users share content with their pinned contacts by dragging files from the File Explorer to a My People pin.
朋友圈通知My People notifications 顯示如何建立及使用朋友圈通知,這是一種新的快顯通知,由釘選的連絡人所傳送。Shows how to create and use My People notifications, a new kind of toast notification that's sent from a pinned contact.