This page contains C#.NET code examples for ArcWeb service objects and methods. The samples apply to desktop and Web applications. For objects that are both inputs or outputs (for example, MapArea), the examples only show inputs. See ArcWeb services overview for quick links to overviews, method descriptions, and notes for each service. See Object descriptions for detailed descriptions of objects. Code examples are also available in ColdFusion MX, Java, SOAP, and VB.NET.
|
|
|||
|
|
|
|
|||
|
|
|||
|
|
|||
|
|
|
|
|
AccountInfoOptions myAccountInfoOptions = new AccountInfoOptions(); |
|
|
|
AccountSummary myAccountSummary = myAccountInfo.getUsage(myAccountInfoOptions,
myDateTimeRange, token); |
|
|
|
AccountUsage myAccountUsage = myUserUsage.accountUsage; |
|
|
|
Address myAddress = new Address(); |
|
|
|
AddressFields myAddressFields = new AddressFields(); |
|
|
|
AddressFinderInfo[] myAddressFinderInfoArray = myAddressFinder.getInfo(myDataSourcesArray,
token); |
|
|
|
AddressFinderOptions myAddressFinderOptions = new AddressFinderOptions(); |
|
|
|
AddressManager myAddressManager = new AddressManager(); |
|
|
|
AdminOptions myAdminOptions = new AdminOptions(); |
|
|
|
AttributeDesc[] myAttributeDescArray = myContentFinder.getAvailableAttributes("DataFile",
token); |
|
|
|
Circle myCircle = new Circle(); |
|
|
|
CircleDesc myCircleDesc = new CircleDesc(); |
|
|
|
CircularArc myCircularArc = new CircularArc(); |
|
|
|
ContentFinderRecord[] myContentFinderRecordArray = myContentFinder.getDependentContent(myContentFinderRecordID,token); |
|
|
|
ContentFinderRecordID myContentFinderRecordID = new ContentFinderRecordID(); |
|
|
|
ContentFinderResultSet myContentFinderResultSet = myContentFinder.searchRecords(myContentFinderSearchOptions,
token); |
|
|
|
ContentFinderSearchOptions myContentFinderSearchOptions =
new ContentFinderSearchOptions(); |
|
|
|
CoordSys myCoordSys = new CoordSys(); |
|
|
|
CustomReportVariables myCustomReportVariables = new CustomReportVariables(); |
|
|
|
CustomVariableInfo[] myCustomVariableInfoArray = myReport.getCustomVariables("ArcWeb:ESRI.DemographicAndIncome.US",
token); |
|
|
|
DataFile myDataFile = new DataFile(); |
|
|
|
DataFileInfo myDataFileInfo = myDataManager.getDataFilesInfo(myStringArray,
token); |
|
|
|
DataSourceInfo myDataSourceInfo = myDataSourceInfoArray[0]; |
|
|
|
DataSourceUsage myDataSourceUsage = myDataSourceUsageArray[0]; |
|
|
|
DateTimeRange myDateTimeRange = new DateTimeRange(); |
|
|
|
DeviceLocationInfo[] myDeviceLocationInfoArray = myWirelessLocation.getDeviceLocation(myMobileDeviceArray,
myDeviceLocationOptions, token); |
|
|
|
DeviceLocationOptions myDeviceLocationOptions = new DeviceLocationOptions(); |
|
|
|
DeviceStatus[] myDeviceStatusArray = myWirelessLocation.getDeviceStatus(myMobileDeviceArray,
token); |
|
|
|
DeviceStopInfo[] myDeviceStopInfoArray = myWirelessLocation.getDeviceStops(myDeviceStopOptions,
token); |
|
|
|
DeviceStopOptions myDeviceStopOptions = new DeviceStopOptions(); |
|
|
|
DeviceTripInfo myDeviceTripInfo = myWirelessLocation.getTripInfo(myDeviceTripOptions,
token); |
|
|
|
DeviceTripOptions myDeviceTripOptions = new DeviceTripOptions(); |
|
|
|
DistanceInfo myDistanceInfo = myUtility.getDistance(myPoint1,myPoint2,"km",100,true,token); |
|
|
|
Ellipse myEllipse = new Ellipse(); |
|
|
|
Envelope myEnvelope = new Envelope(); |
|
|
|
Feature myFeature = new Feature(); |
|
|
|
FeatureIDInfo[] myFeatureIDInfoArray = myDataManager.addFeatures("MyDataFile",
myFeatureArray, false, token); |
|
|
|
FeatureResultSet myFeatureResultSet = myDataManager.findFeatures("MyDataFile",
myFeatureSearchOptions, token); |
|
|
|
FeatureResultSet myFeatureResultSet = myDataManager.findFeatures("MyDataFile",
myFeatureSearchOptions, token); |
|
|
|
FeatureSearchOptions myFeatureSearchOptions = new FeatureSearchOptions();
|
|
|
|
FeatureUpdateOptions myFeatureUpdateOptions = new FeatureUpdateOptions(); |
|
|
|
FieldDesc[] myFieldDescArray = myResultSet.fields; |
|
|
|
FieldInfo myFieldinfo = new FieldInfo(); |
|
|
|
GeocodeCandidate[] myGeocodeCandidateArray = myGeocodeInfo.candidates; |
|
|
|
GeocodeInfo myGeocodeInfo = myPlaceFinder.findPlace("redlands",
myPlaceFinderOptions, token); |
|
|
|
GeocodeOptions myGeocodeOptions = new GeocodeOptions(); |
|
|
|
GeographyIDOptions myGeographyIDOptions = new GeographyIDOptions(); |
|
|
|
Geometry myGeometry = new Geometry(); |
|
|
|
KeyValue myKeyValue = new KeyValue(); |
|
|
|
LabelDesc myLabelDesc = new LabelDesc(); |
|
|
|
Layer myLayer = new Layer(); |
|
|
|
MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions,
10, token); |
|
|
|
MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions,
10, token); |
|
|
|
LineDesc myLineDesc = new LineDesc(); |
|
|
|
MapArea myMapArea = new MapArea(); |
|
|
|
MapFusionOptions myMapFusionOptions = new MapFusionOptions(); |
|
|
|
MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions,
10, token); |
|
|
|
MapImageOptions myMapImageOptions = new MapImageOptions(); |
|
|
|
MapImageSize myMapImageSize = new MapImageSize(); |
|
|
|
MapLegend myMapLegend = new MapLegend(); |
|
|
|
MarkerDesc myMarkerDesc = new MarkerDesc(); |
|
|
|
MobileDevice myMobileDevice = new MobileDevice(); |
|
|
|
OrderBy myOrderBy = new OrderBy(); |
|
|
|
PixelCoord myPixelCoord = new PixelCoord(); |
|
|
|
PlaceFinderInfo[] myPlaceFinderInfoArray = myPlaceFinder.getInfo(myDataSourcesArray,
token); |
|
|
|
PlaceFinderOptions myPlaceFinderOptions = new PlaceFinderOptions(); |
|
|
|
Point myPoint = new Point(); |
|
|
|
PolygonDesc myPolygonDesc = new PolygonDesc(); |
|
|
|
ReportInfo myReportInfo = myReport.getCustomSiteReport(mySite,
myReportOptionsArray, myCustomReportVariablesArray, token); |
|
|
|
ReportOptions myReportOptions = new ReportOptions(); |
|
|
|
ResultSet myResultSet = new ResultSet(); |
|
|
|
ResultSetRange myResultSetRange = new ResultSetRange(); |
|
|
|
RouteDisplayOptions myRouteDisplayOptions = new RouteDisplayOptions(); |
|
|
|
RouteFinderOptions myRouteFinderOptions = new RouteFinderOptions(); |
|
|
|
RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray,
myRouteFinderOptions, token); |
|
|
|
RouteOptions myRouteOptions = new RouteOptions(); |
|
|
|
RouteStop myRouteStop = new RouteStop(); |
|
|
|
RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray,
myRouteFinderOptions, token); |
|
|
|
RowData[] myRowData = myResultSet.rows; |
|
|
|
ScaleBarDesc myScaleBarDesc = new ScaleBarDesc(); |
|
|
|
SearchOptions mySearchOptions = new SearchOptions(); |
|
|
|
RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray,
myRouteFinderOptions, token); |
|
|
|
ServiceInfo myServiceInfo = myServiceInfoArray[0]; |
|
|
|
ServiceSummary myServiceSummary = myServiceSummaryArray[0]; |
|
|
|
ServiceUsage myServiceUsage = myServiceUsageArray[0]; |
|
|
|
SimplePoint mySimplePoint = new SimplePoint(); |
|
|
|
Site mySite = new Site(); |
|
|
|
SpatialBuffer mySpatialBuffer = new SpatialBuffer(); |
|
|
|
foreach (SpatialQueryInfo spatialQueryInfo in mySpatialQueryInfo) |
|
|
|
SpatialQueryOptions mySpatialQueryOptions = new SpatialQueryOptions(); |
|
|
|
StandardGeography myStandardGeography = new StandardGeography(); |
|
|
|
StringSet myStringSet = myDataManager.getUniqueValues("MyDataFile",
"owner_id", myResultSetRange, token); |
|
|
|
ThematicColors myThematicColors = new ThematicColors(); |
|
|
|
ThematicData myThematicData = new ThematicData(); |
|
|
|
ThematicOptions myThematicOptions = new ThematicOptions(); |
|
|
|
ThematicReportOptions myThematicReportOptions = new ThematicReportOptions(); |
|
|
|
ThematicVariableInfo[] myThematicVariableInfoArray = getThematicVariables(myDatabase,
myTable, token); |
|
|
|
UsageInfo myUsageInfo = myDataSourceUsage.usage; |
|
|
|
User myUser = myUserUsage.user; |
|
|
|
UserUsage myUserUsage = myUserUsageArray[0]; |
|
AccountInfo myAccountInfo = new AccountInfo(); |
|
|
|
AccountInfo myAccountInfo = new AccountInfo(); |
|
|
|
AccountInfo myAccountInfo = new AccountInfo(); |
|
AddressFinder myAddressFinder = new AddressFinder(); |
|
|
|
AddressFinder myAddressFinder = new AddressFinder(); |
|
|
|
AddressFinder myAddressFinder = new AddressFinder(); |
|
|
|
AddressFinder myAddressFinder = new AddressFinder(); |
|
|
|
AddressFinder myAddressFinder = new AddressFinder(); |
|
|
|
AddressFinder myAddressFinder = new AddressFinder(); |
|
AddressManager myAddressManager = new AddressManager(); |
|
|
|
AddressManager myAddressManager = new AddressManager(); |
|
|
|
AddressManager myAddressManager = new AddressManager(); |
|
|
|
AddressManager myAddressManager = new AddressManager(); |
|
|
|
AddressManager myAddressManager = new AddressManager(); |
|
|
|
AddressManager myAddressManager = new AddressManager(); |
|
Authentication myAuthentication = new Authentication(); |
|
|
|
Authentication myAuthentication = new Authentication(); |
|
|
|
Authentication myAuthentication = new Authentication(); |
|
|
|
Authentication myAuthentication = new Authentication(); |
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
|
|
ContentFinder myContentFinder = new ContentFinder(); |
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
|
|
DataManager myDataManager = new DataManager(); |
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
|
|
MapImage myMapImage = new MapImage(); |
|
PlaceFinder myPlaceFinder = new PlaceFinder(); |
|
|
|
PlaceFinder myPlaceFinder = new PlaceFinder; |
|
|
|
PlaceFinder myPlaceFinder = new PlaceFinder; |
|
PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample(); |
|
|
|
PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample(); |
|
|
|
PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample(); |
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
|
|
Report myReport = new Report(); |
|
RouteFinder myRouteFinder = new RouteFinder(); |
|
|
|
RouteFinder myRouteFinder = new RouteFinder(); |
|
|
|
RouteFinder myRouteFinder = new RouteFinder(); |
|
SpatialQuery mySpatialQuery = new SpatialQuery(); |
|
|
|
SpatialQuery mySpatialQuery = new SpatialQuery(); |
|
|
|
SpatialQuery mySpatialQuery = new SpatialQuery(); |
|
|
|
SpatialQuery mySpatialQuery = new SpatialQuery(); |
|
|
|
SpatialQuery mySpatialQuery = new SpatialQuery(); |
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility
myUtility = new Utility(); |
|
|
|
Utility myUtility = new Utility(); |
|
|
|
Utility
myUtility = new Utility(); |
|
WirelessLocation myWirelessLocation = new WirelessLocation(); |
|
|
|
WirelessLocation myWirelessLocation = new WirelessLocation(); |
|
|
|
WirelessLocation myWirelessLocation = new WirelessLocation(); |
|
|
|
WirelessLocation myWirelessLocation = new WirelessLocation(); |
|
|
|
WirelessLocation myWirelessLocation = new WirelessLocation(); |
|
|
|
WirelessLocation myWirelessLocation = new WirelessLocation(); |
Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.