esri_portal_add 函数用于将指定的门户添加到托管门户的列表中,并返回包含有关组织和用户账户属性的列表。
语法
(esri_portal_add url)
参数
包括以下参数:
- url | 字符串 | 必填 | 有效 ArcGIS Online 或 ArcGIS Enterprise 门户的 URL。
示例:ArcGIS Online - https://www.arcgis.com 或 https://<yourorg>.maps.arcgis.com
ArcGIS Enterprise - https://<webadaptorhost>.<domain.com>/<webadaptorname>
示例用法
添加指定门户。(esri_portal_add "https://cadteam.esri.com/portal")
结果示例用法
返回一个列表,其中包含有关组织和用户账户的属性。
(("IsActivePortal" . "False") ("IsSignedIn" . "False") ("OrganizationName" . "") ("PortalUrl" . "https://cadteam.esri.com/portal") ("CurrentUser" . "nil"))返回值
以下是可能的返回值:
- 如果成功,该函数将返回门户属性的关联列表。
- 如果失败,则该函数将返回一个列表,其中第一个值为 nil,然后是一个包含键值 "Error" 的关联列表以及字符串形式的关联错误消息:(nil ( "Error" . "<message>"))。
失败的返回值
出于以下任一原因,可能出现失败的返回值:
- (nil ("Error" . "Missing required argument."))
未提供必填参数。
- (nil ("Error" . "requires network....")))
找不到网络连接。
- (nil ("Error" . "Invalid URL"))
提供的 URL 无效。
另请参阅
(esri_portal_remove) - 此 AutoLISP 函数用于移除指定门户连接。
(esri_portal_signin) - 此 AutoLISP 函数可发出登录到指定门户的提示。