首先介绍几个概念:
Server Objects
一个服务器对象就是一个粗粒的ArcObject
l MapServer—展示地图文档
l GeocodeServer—展示定位器
能从一个服务器对象获得其它相关的对象:
MapServer –>Map àLayer
Server context
1)可以把Server context 是一个进程 (ArcSOC.exe)
2)作为访问server object 和ArcObjects的入口
3)需要小心地管理Server Context的生命周期
服务器对象的生命周期
普通步骤(COM应用程序)
1. 连接
2. 创建一个 context
3. 访问 server object
4. 释放 context
服务器对象存活在上下文中。
调用CreateServerContext来获得一个包含专门服务器对象的服务器上下文。
只要持有服务器上下文,服务器对象和所有相关的其它对象就是活动的,可以使用。
一旦释放了服务器上下文,就不能再使用服务器对象或从上下文中获得任何其它对象。
在池式的服务器对象/上下文情况下,即使释放了服务器上下文,服务器也将处理其他用户/会话的服务器对象/上下文请求。
在Context之间传递对象
1)一个Context不可以直接使用在另一个Context中创建的对象
2)必须序列化对象
3)对象必须实现IPersistStream接口 (serializable)
4)使用 SaveObject和LoadObject方法
‘在 geocode servers context中保存点对象
Dim sPoint As String = geocodeContext.SaveObject(geocodedPoint)
‘在map’s server context中装载点对象
Dim mapPoint As IPoint = mapContext.LoadObject(sPoint)
分享到:
相关推荐
3.Web ADF/Common Data Source API-->Data Source Specific APIs 页面ADF框架普通数据源API调用数据源具体API 4.Data Source Specific APIs 直接使用数据源具体API 这四种开发方式难度是有易至难的,但其可定制性...
When using the EDSDK libraries, you must call this API once before using EDSDK APIs. Parameters: In: None Out: None Returns: Returns EDS_ERR_OK if successful. In other cases, see EDSDKError....
Secure Coding Frameworks (APIs) Manual Code Review Independent Code Review and Testing (by Experts or Third Parties) Static Analysis Risk Assessment Methodology Integration of SDL with SDLC ...
Play Framework is an open source web application framework that is written in Java and Scala. It follows the Model-View-Controller architectural pattern and enables the user to employ Scala for ...
Selenium WebDriver is an open source automation tool implemented through a browser-specific driver, which sends commands to a browser and retrieves results. The latest version of Selenium 3 brings ...
* Learn the Hadoop Distributed File System (HDFS), including ways to use its many APIs to transfer data * Write distributed computations with MapReduce, Hadoop's most vital component * Become familiar...
Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to...
Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to...
Its unique architecture allows the lean reporting engine to quickly read records from the data source and immediately render them to the output device. The simplicity of the design allows the data to...
Simple application that calls various PLX APIs for a selected device & verifies return codes & parameters. The API calls made depend upon the type of device selected. - DSlave Demonstrates how to ...
Google-Specific Magic Smart Pointers cpplint Other C++ Features Reference Arguments Function Overloading Default Arguments Variable-Length Arrays and alloca() Friends Exceptions Run-Time Type ...
This practical book provides the concepts and code you need to develop software with Android, the open-source platform for cell phones and mobile devices that's generating enthusiasm across the ...
* fixed: audio delay was incorrect when 1st m2ts part contained no audio data * fixed: very small WAV files were not detected correctly * fixed: "eac3to source.eac3 dest.dts -core" crashed v3.12 * ...
Persistence is an important set of techniques and technologies for accessing and using data, and ensuring that data is mobile regardless of specific applications and contexts. In Java development, ...
Shell APIs The Shell Namespace The Taskbar Notification Area Summary Chapter 10: Utility and Exception Classes CStrings Constructing CString Objects CString Operators CStrings and String ...
Current stable release...Call C functions directly (no wrappers or special APIs needed) Powerful shell-like capabilities for managing other processes Lisp-like macros and other metaprogramming facilities
learn the concepts and architecture of a specific feature set, including views, maps, location-based services, persistent data storage, 2D and 3D graphics, media services, telephony services, and ...
The code has been tested under NT4 SP6a<END><br>31,passdemo.zip This is a very good example of how to use the registry to save data. It shows how to create, store and save a password to the ...
You may also find it useful to refer to the source code of ProCamCalib and ProCamTracker as well as examples ported from OpenCV2 Cookbook and the associated wiki pages. Please keep me informed of ...