Skip To Content

Portal.Remove (.NET)

Portal.Remove 方法用于移除指定门户连接。

声明

public bool Esri.ArcGISForAutoCAD.Portal.Remove(string portalName)

参数

类型名称描述必填

string

portalName

ArcGIS OnlineArcGIS Enterprise 组织名称。 可以使用 Portal.Names 查找有效名称的集合。

必填

注:

首先通过 "ArcGIS Online""ArcGIS Enterprise" 的默认门户名称来访问门户名称。 登录后,门户名称可能是 GIS 管理员设置的组织名称。 登录后,可以使用 Portal.Names 来确认名称。

返回

类型描述

bool

如果已成功移除门户,则为 true

错误条件备注

如果参数无效,则此方法可能会抛出异常或者返回 falsenull

示例

打印移除指定门户成功。

// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;

// Remove the portal
var success = Esri.ArcGISForAutoCAD.Portal.Remove("CAD Team Enterprise 11.3"); 

// Print the success
doc.Editor.WriteMessage(success.ToString());

/* Example output 
True
*/

另请参阅

esri_portal_remove - 此 AutoLISP 函数用于移除指定门户连接。