Excel.RequestContext class
RequestContext オブジェクトは、Excel アプリケーションへの要求を容易にします。 Office アドインと Excel アプリケーションは 2 つの異なるプロセスで実行されるため、アドインから Excel オブジェクト モデルにアクセスするには、要求コンテキストが必要です。
注釈
例
// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await Excel.run(async (context: Excel.RequestContext) => {
const workbook = context.workbook;
// Interact with the Excel workbook...
});
コンストラクター
| (constructor)(url) |
|
プロパティ
| application | |
| runtime | |
| workbook |
コンストラクターの詳細
(constructor)(url)
RequestContext クラスの新しいインスタンスを構築します
constructor(url?: string | Session);
パラメーター
- url
-
string | Excel.Session