Enum InstallationSource
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
설치소스
스크립트가 현재 사용자의 부가기능으로 설치된 방법을 나타내는 열거형입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
ScriptApp.InstallationSource.APPS_MARKETPLACE_DOMAIN_ADD_ON
입니다.
속성
속성 | 유형 | 설명 |
APPS_MARKETPLACE_DOMAIN_ADD_ON | Enum | 관리자가 사용자의 도메인에 부가기능을 설치했습니다. |
NONE | Enum | 스크립트가 부가기능으로 실행되지 않습니다. |
WEB_STORE_ADD_ON | Enum | 사용자가 Chrome 웹 스토어에서 부가기능을 설치했습니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eInstallationSource\u003c/code\u003e is used to identify how a script was installed as an add-on.\u003c/p\u003e\n"],["\u003cp\u003eThis enum includes three properties: \u003ccode\u003eAPPS_MARKETPLACE_DOMAIN_ADD_ON\u003c/code\u003e, \u003ccode\u003eNONE\u003c/code\u003e, and \u003ccode\u003eWEB_STORE_ADD_ON\u003c/code\u003e, indicating whether the script was installed by a domain admin, is not an add-on, or was installed from the Chrome Web Store, respectively.\u003c/p\u003e\n"],["\u003cp\u003eTo access the enum values, use the syntax: \u003ccode\u003eScriptApp.InstallationSource.PROPERTY_NAME\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum InstallationSource\n\nInstallationSource\n\nAn enumeration that indicates how the script came to be installed as an add-on for the current\nuser.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nScriptApp.InstallationSource.APPS_MARKETPLACE_DOMAIN_ADD_ON`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------------------------|--------|------------------------------------------------------------------|\n| `APPS_MARKETPLACE_DOMAIN_ADD_ON` | `Enum` | Add-on was installed by the administrator for the user's domain. |\n| `NONE` | `Enum` | Script is not running as an add-on. |\n| `WEB_STORE_ADD_ON` | `Enum` | Add-on was installed by the user from the Chrome Web Store. |"]]