Excel.LinkedEntityId interface

链接的实体 ID 对象表示一组属性,这些属性描述用于查找此服务定义的值的服务和区域性。

注解

API 集:ExcelApi 1.16

使用方

示例

// Loads a linked entity cell value using a LinkedEntityId.
async function loadLinkedEntity(domainId: string, entityId: string) {
    await Excel.run(async (context) => {
        // Specify the linked entity ID to load.
        const linkedEntityId: Excel.LinkedEntityId = {
            entityId: entityId,
            domainId: domainId,
            serviceId: 268436224, // Service ID used by Excel to identify linked entity cell values associated with an add-in.
            culture: "en-US",
        };

        // Load the linked entity cell value.
        context.workbook.linkedEntityDataDomains.loadLinkedEntityCellValue(linkedEntityId);
        await context.sync();
    });
}

属性

culture

表示用于创建此 CellValue的语言区域性。

domainId

表示特定于用于创建 的服务的 CellValue域。

entityId

表示特定于用于创建 的服务的 CellValue标识符。

serviceId

表示用于创建 的服务 CellValue

属性详细信息

culture

表示用于创建此 CellValue的语言区域性。

culture: string;

属性值

string

注解

API 集:ExcelApi 1.16

domainId

表示特定于用于创建 的服务的 CellValue域。

domainId?: string;

属性值

string

注解

API 集:ExcelApi 1.16

entityId

表示特定于用于创建 的服务的 CellValue标识符。

entityId: string;

属性值

string

注解

API 集:ExcelApi 1.16

serviceId

表示用于创建 的服务 CellValue

serviceId: number;

属性值

number

注解

API 集:ExcelApi 1.16