[Visual Basic .NET]The following VB.NET code shows how to get a reference to a server object extension to the MapServer called "AreaSumExtension". This extension supports an interface called IAreaSum. The code assumes a valid ServerObjectManager (pSOM):
Dim pServerContext As IServerContext = pSOM.CreateServerContext("RedlandsMap", "MapServer") Dim pMapServer As IMapServer = pServerContext.ServerObject Dim pSOExtManager As IServerObjectExtManager = pMapServer Dim pSOExt As IServerObjectExtension = pSOExtManager.FindExtensionByName(“AreaSumExtension”); Dim pAreaSum As IAreaSum = pSOExt'call methods on IAreaSumpServerContext.ReleaseContext()
[Visual Basic 6.0, C#, C++]
No example is available for Visual Basic 6.0, C#, or C++. To view a Visual Basic .NET example, click the Language Filter button
in the upper-left corner of the page.