Office.EmailUser interface
Exchange Server 上の電子メール アカウントを表します。
EmailUser
オブジェクトは、主に Outlook アイテムから抽出された MeetingSuggestion エンティティと TaskSuggestion エンティティで受信されます。 このシナリオの詳細については、「 Outlook アイテムからエンティティ文字列を抽出する」を参照してください。
注釈
最小アクセス許可レベル: アイテムの読み取り
適用される Outlook モード: 読み取り
例
// The following example is an excerpt from a larger sample.
// For the full sample, visit https://learn.microsoft.com/office/dev/add-ins/outlook/extract-entity-strings-from-an-item.
// Gets instances of the task suggestion entity on the item.
function myGetTaskSuggestions()
{
let htmlText = "";
// Gets an array of TaskSuggestion objects, each array element
// containing an instance of a task suggestion entity from
// the current item.
const tasksArray = _MyEntities.taskSuggestions;
// Iterates through each instance of a task suggestion.
for (let i = 0; i < tasksArray.length; i++)
{
// Gets the string that was identified as a task suggestion.
htmlText += "TaskString : <span>" +
tasksArray[i].taskString + "</span><br/>";
// Gets an array of assignees for that instance of a task
// suggestion. Each assignee is represented by an
// EmailUser object.
let assigneesArray = tasksArray[i].assignees;
for (let j = 0; j < assigneesArray.length; j++)
{
htmlText += "Assignee : ( ";
// Gets the displayName property of the assignee.
htmlText += "displayName = <span>" + assigneesArray[j].displayName +
"</span> , ";
// Gets the emailAddress property of each assignee.
// This is the SMTP address of the assignee.
htmlText += "emailAddress = <span>" + assigneesArray[j].emailAddress +
"</span>";
htmlText += " )<br/>";
}
htmlText += "<hr/>";
}
document.getElementById("entities_box").innerHTML = htmlText;
}
プロパティ
display |
電子メール アドレスに関連付けられた表示名を取得します。 |
email |
SMTP 電子メール アドレスを取得します。 |
プロパティの詳細
displayName
電子メール アドレスに関連付けられた表示名を取得します。
displayName: string;
プロパティ値
string
emailAddress
SMTP 電子メール アドレスを取得します。
emailAddress: string;
プロパティ値
string
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Office Add-ins
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示