Excel.LinkedEntityDataDomainAddedEventArgs interface
ブックに追加したばかりのリンクされたエンティティ データ ドメインの ID に関する情報を提供します。
注釈
このインターフェイスは、Excel on the webではサポートされていません。
使用元
例
// Registers an event handler for the onLinkedEntityDataDomainAdded event.
await Excel.run(async (context) => {
const dataDomains: Excel.LinkedEntityDataDomainCollection = context.workbook.linkedEntityDataDomains;
dataDomains.onLinkedEntityDataDomainAdded.add(onDataDomainAdded);
await context.sync();
});
async function onDataDomainAdded(eventArgs: Excel.LinkedEntityDataDomainAddedEventArgs): Promise<void> {
console.log(`Linked entity data domain added: ${eventArgs.id}`);
console.log(`Event type: ${eventArgs.type}`);
console.log(`Event source: ${eventArgs.source}`);
console.log(`Service ID: ${eventArgs.serviceId}`);
}
プロパティ
| id | ブックに追加したばかりのリンク エンティティ データ ドメインの ID を取得します。 この ID は Office アドインによって定義されます。この ID は、Bingや Power BI などのサービス データ プロバイダーによって定義されたリンクされたエンティティ データ ドメインには適用されません。 |
| service |
ブックに追加したばかりのリンクされたエンティティ データ ドメインのサービス ID を取得します。 |
| source | イベントのソースを取得します。 詳細は「 |
| type | イベントの種類を取得します。 詳細は「 |
プロパティの詳細
id
ブックに追加したばかりのリンク エンティティ データ ドメインの ID を取得します。 この ID は Office アドインによって定義されます。この ID は、Bingや Power BI などのサービス データ プロバイダーによって定義されたリンクされたエンティティ データ ドメインには適用されません。
id?: string;
プロパティ値
string
注釈
このプロパティは、Excel on the webではサポートされていません。
serviceId
ブックに追加したばかりのリンクされたエンティティ データ ドメインのサービス ID を取得します。
serviceId: number;
プロパティ値
number
注釈
このプロパティは、Excel on the webではサポートされていません。
source
イベントのソースを取得します。 詳細は「Excel.EventSource」をご覧ください。
source: Excel.EventSource | "Local" | "Remote";
プロパティ値
Excel.EventSource | "Local" | "Remote"
注釈
このプロパティは、Excel on the webではサポートされていません。
type
イベントの種類を取得します。 詳細は「Excel.EventType」をご覧ください。
type: "LinkedEntityDataDomainLinkedEntityDataDomainAdded";
プロパティ値
"LinkedEntityDataDomainLinkedEntityDataDomainAdded"
注釈
このプロパティは、Excel on the webではサポートされていません。