Office.LocationDetails interface
表示位置。 只读。
注解
最低权限级别: 读取项目
适用的 Outlook 模式:Compose 或 Read
使用方
示例
Office.context.mailbox.item.enhancedLocation.getAsync(callbackFunction);
function callbackFunction(asyncResult) {
asyncResult.value.forEach(function (place) {
console.log("Display name: " + place.displayName);
console.log("Type: " + place.locationIdentifier.type);
if (place.locationIdentifier.type === Office.MailboxEnums.LocationType.Room) {
console.log("Email address: " + place.emailAddress);
}
});
}
属性
| display |
该位置的显示名称。 |
| email |
与该位置关联的电子邮件地址。 只有类型的 |
| location |
位置的。 |
属性详细信息
displayName
该位置的显示名称。
displayName: string;
属性值
string
emailAddress
与该位置关联的电子邮件地址。 只有类型的 Room 位置才具有电子邮件地址。
emailAddress: string;
属性值
string