This document is archived and information here might be outdated.  Recommended version.

IServerContext.Remove Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerContext Interface > IServerContext.Remove Method
ArcGIS Developer Help

IServerContext.Remove Method

Remove an object from the server context's object dictionary.

[Visual Basic .NET]
Public Sub Remove ( _
    ByVal Name As String _
public void Remove (
    string Name
  BSTR Name
Name [in]

Name is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Remove and RemoveAll to remove object from a context that have been set using SetObject. Once an object it can no longer be retrieved using GetObject. Note that if you do not explicitly call Remove or RemoveAll, you can still not get references to objects set in the context after the context has been released.

See Also

IServerContext Interface