This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerContext Interface > IServerContext.ServerObject Property (ArcObjects .NET 10.4 SDK) |
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
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.