Excel.Session class

为远程工作簿提供连接会话。Provides connection session for a remote workbook.

构造函数

(constructor)(workbookUrl, requestHeaders, persisted)

构造Session类的新实例Constructs a new instance of the Session class

方法

close()

关闭会话。Close the session.

构造函数详细信息

(constructor)(workbookUrl, requestHeaders, persisted)

构造Session类的新实例Constructs a new instance of the Session class

constructor(workbookUrl?: string, requestHeaders?: {
            [name: string]: string;
        }, persisted?: boolean);

参数

workbookUrl
string
requestHeaders
{ [name: string]: string; }
persisted
boolean

方法详细信息

close()

关闭会话。Close the session.

close(): Promise<void>;

返回

Promise<void>