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.
}
方法
| is | 检查 Office 应用程序是否支持指定的要求集。 | 
| is | 检查 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