Office.RequirementSetSupport interface

現在の環境でサポートされている要件セットに関する情報を提供します。

注釈

使用元

const requirements : Office.RequirementSetSupport = Office.context.requirements; 
if (requirements.isSetSupported('Mailbox', '1.14')) {
    // Code that uses APIs from the 'Mailbox 1.14' requirement set.
} else {
    // An alternate path (such as a message to the user) when the requirement set isn't supported.
}

メソッド

isSetSupported(name, minVersion)

指定した要件セットが Office アプリケーションでサポートされているかどうかを確認します。

isSetSupported(name, minVersionNumber)

指定した要件セットが Office アプリケーションでサポートされているかどうかを確認します。

メソッドの詳細

isSetSupported(name, minVersion)

指定した要件セットが Office アプリケーションでサポートされているかどうかを確認します。

isSetSupported(name: string, minVersion?: string): boolean;

パラメーター

name

string

要件セットの名前 (例: "ExcelApi")。

minVersion

string

必要な最小バージョン (例: "1.4")。

返品

boolean

isSetSupported(name, minVersionNumber)

警告

この API は非推奨になりました。

Use the string overload of isSetSupported instead.

指定した要件セットが Office アプリケーションでサポートされているかどうかを確認します。

isSetSupported(name: string, minVersionNumber?: number): boolean;

パラメーター

name

string

要件セットの名前 (例: "ExcelApi")。

minVersionNumber

number

必要な最小バージョン (例: 1.4)。

返品

boolean