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


IServerContext.ServerObject Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Server)  

IServerContext.ServerObject Property

The map or geocode server object running in the server context.

[Visual Basic .NET]
Public ReadOnly Property ServerObject As IServerObject
[C#]
public IServerObject ServerObject {get;}
[C++]
HRESULT get_ServerObject(
  IServerObject** obj
);
[C++]

Parameters obj [out, retval]
obj is a parameter of type IServerObject**

Product Availability

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

Remarks

The ServerObject property of a server context returns the server object that is running withing the server context. If you use the CreateServerContext method on IServerObjectManager to create a a server context based on a server object configuration, use the ServerObjectProperty to get a reference to the server object that is running within that context.

See Also

IServerContext Interface