The Portal.SignOutAsync method signs the user out of the specified portal. Use this method when you need to log in to the portal as a different user. Sign out before signing in again with new credentials.
Declaration
public async Task<bool> Esri.ArcGISForAutoCAD.Portal.SignOutAsync(string portalName)
Parameters
| Type | Name | Description | Required |
|---|---|---|---|
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 recheck the names with Portal.Names after signing in.
Returns
| Type | Description |
|---|---|
bool | true if the portal was signed out successfully |
Remarks on error conditions
This method may throw an exception or return false or null if a parameter is invalid or the sign out attempt fails.
Example
Print the success of signing out of the specified portal.// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;
// Sign out of the portal
var success = await Esri.ArcGISForAutoCAD.Portal.SignOutAsync("CAD Team Enterprise 11.3");
// Print the success
doc.Editor.WriteMessage(success.ToString());
/* Example output
True
*/
See also
Portal.Names—A .NET method that returns a collection of portal names from the managed portals as strings.
esri_portal_signout—An AutoLISP function that signs the account out of the specified portal.