Skip To Content

Portal.Remove (.NET)

The Portal.Remove method removes the specified portal connection..

Declaration

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

Parameters

TypeNameDescriptionRequired

string

portalName

The ArcGIS Online or ArcGIS Enterprise organization name. Use Portal.Names to find a collection of valid names.

Required

Note:

The portal name is first accessed by the default portal name of "ArcGIS Online" or "ArcGIS Enterprise". Once signed in, the portal name may be the organizational name set by the GIS administrator. You can confirm the names with Portal.Names after signing in.

Returns

TypeDescription

bool

true if the portal was removed successfully

Remarks on error conditions

This method may throw an exception or return false or null if a parameter is invalid.

Example

Print the success of removing the specified portal.

// 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
*/

See also

esri_portal_remove—An AutoLISP function that removes the specified portal connection.