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


IServerContext.RemoveAll Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Server)  

IServerContext.RemoveAll Method

Remove all objects from the server context's object dictionary.

[Visual Basic .NET]
Public Sub RemoveAll ( _
)
[C#]
public void RemoveAll (
);
[C++]
HRESULT RemoveAll(
void
);

Product Availability

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

Remarks

Remove and RemoveAll to remove object from a context that have been set using SetObject. Once an object is removed, a reference can no longer be made to it 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