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