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

.NET Samples

Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) | Simple SOE (Code Files: Form1) |

.NET Related Topics

Connecting to a GIS server | Feature services | GeoData services | Managing application state | Map services | Pooling objects with server objects | Programming with server objects | Server | Working with server contexts |