Office.EmailUser interface
Representa una cuenta de correo electrónico en Exchange Server.
EmailUser
Los objetos se reciben principalmente en las entidades MeetingSuggestion y TaskSuggestion extraídas de un elemento de Outlook. Para más información sobre este escenario, consulte Extracción de cadenas de entidad de un elemento de Outlook.
Comentarios
Nivel mínimo de permiso: elemento de lectura
Modo de Outlook aplicable: Lectura
Ejemplos
// 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;
}
Propiedades
display |
Obtiene el nombre para mostrar asociado a una dirección de correo electrónico. |
email |
Obtiene la dirección de correo electrónico SMTP. |
Detalles de las propiedades
displayName
Obtiene el nombre para mostrar asociado a una dirección de correo electrónico.
displayName: string;
Valor de propiedad
string
emailAddress
Obtiene la dirección de correo electrónico SMTP.
emailAddress: string;
Valor de propiedad
string
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de