This page contains VB.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 C#.NET, ColdFusion MX, Java, and SOAP.
|
|
|||
|
|
|
|
|||
|
|
|||
|
|
|||
|
|
|
|
|
Dim myAccountInfoOptions As New AccountInfoOptions |
|
|
|
Dim myAccountSummary As AccountSummary = myAccountInfo.getUsage(myAccountInfoOptions,
myDateTimeRange, token) |
|
|
|
Dim myAccountUsage As AccountUsage = myUserUsage.accountUsage |
|
|
|
Dim myAddress As New Address |
|
|
|
Dim myAddressFields As New AddressFields |
|
|
|
Dim myAddressFinderInfoArray() As AddressFinderInfo = myAddressFinder.getInfo(myDataSourcesArray,
token) |
|
|
|
Dim myAddressFinderOptions As New AddressFinderOptions |
|
|
|
Dim myAddressManager As New AddressManager |
|
|
|
Dim myAdminOptions As New AdminOptions |
|
|
|
Dim myAttributeDescArray() As AttributeDesc = myContentFinder.getAvailableAttributes("DataFile",
token) |
|
|
|
Dim myCircle As New Circle |
|
|
|
Dim myCircleDesc As New CircleDesc |
|
|
|
Dim myCircularArc As New CircularArc |
|
|
|
Dim myContentFinder As ContentFinder |
|
|
|
Dim myContentFinderRecordID As New ContentFinderRecordID |
|
|
|
Dim myContentFinderResultSet As ContentFinderResultSet =
myContentFinder.searchRecords(myContentFinderSearchOptions, token) |
|
|
|
Dim myContentFinderSearchOptions As New ContentFinderSearchOptions |
|
|
|
Dim myCoordSys As New CoordSys |
|
|
|
Dim myCustomReportVariables As New CustomReportVariables |
|
|
|
Dim myCustomVariableInfoArray() As CustomVariableInfo = myReport.getCustomVariables("ArcWeb:ESRI.DemographicAndIncome.US",
token) |
|
|
|
Dim myDataFile As New DataFile |
|
|
|
Dim myDataFileInfo As DataFileInfo = myDataManager.getDataFilesInfo(myStringArray,
token) |
|
|
|
Dim myDataSourceInfo As DataSourceInfo = myDataSourceInfoArray(0) |
|
|
|
Dim myDataSourceUsage As DataSourceUsage = myDataSourceUsageArray(0) |
|
|
|
Dim myDateTimeRange As New DateTimeRange |
|
|
|
Dim myDeviceLocationInfoArray() As DeviceLocationInfo = myWirelessLocation.getDeviceLocation(myMobileDeviceArray,
myDeviceLocationOptions, token) |
|
|
|
Dim myDeviceLocationOptions As New DeviceLocationOptions |
|
|
|
Dim myDeviceStatusArray() As DeviceStatus = myWirelessLocation.getDeviceStatus(myMobileDeviceArray,
token) |
|
|
|
Dim myDeviceStopInfoArray() As DeviceStopInfo = myWirelessLocation.getDeviceStops(myDeviceStopOptions,
token) |
|
|
|
Dim myDeviceStopOptions As New DeviceStopOptions |
|
|
|
Dim myDeviceTripInfo As DeviceTripInfo = myWirelessLocation.getTripInfo(myDeviceTripOptions,
token)Response.Write("<br>Distance = " & myDeviceTripInfo.distance) |
|
|
|
Dim myDeviceTripOptions As New DeviceTripOptions |
|
|
|
Dim myDistanceInfo As DistanceInfo = myUtility.getDistance(myPoint1,myPoint2,"km",100,True,token) |
|
|
|
Dim myEllipse As New Ellipse |
|
|
|
Dim myEnvelope As New Envelope |
|
|
|
Dim myFeature As New Feature |
|
|
|
Dim myFeatureIDInfoArray() As FeatureIDInfo = myDataManager.addFeatures("MyDataFile",
myFeatureArray, False, token) |
|
|
|
Dim myFeatureResultSet As FeatureResultSet = myDataManager.findFeatures("MyDataFile",
myFeatureSearchOptions, token) |
|
|
|
Dim myFeatureResultSet As FeatureResultSet = myDataManager.findFeatures("MyDataFile",
myFeatureSearchOptions, token) |
|
|
|
Dim myFeatureSearchOptions As New FeatureSearchOptions |
|
|
|
Dim myFeatureUpdateOptions As New FeatureUpdateOptions |
|
|
|
Dim myFieldDesc As New FieldDesc |
|
|
|
Dim myFieldinfo As New FieldInfo |
|
|
|
Dim myGeocodeCandidateArray() As GeocodeCandidate = myGeocodeInfo.candidates |
|
|
|
Dim myGeocodeInfo As GeocodeInfo = myPlaceFinder.findPlace("redlands",
myPlaceFinderOptions, token) |
|
|
|
Dim myGeocodeOptions As New GeocodeOptions |
|
|
|
Dim myGeographyIDOptions As New GeographyIDOptions |
|
|
|
Dim myGeometry As New Geometry |
|
|
|
Dim myKeyValue As New KeyValue |
|
|
|
Dim myLabelDesc As New LabelDesc |
|
|
|
Dim myLayer As New Layer |
|
|
|
Dim myMapImageInfo As MapImageInfo = myMapImage.getBestMap(myMapImageOptions,
10, token) |
|
|
|
Dim myMapImageInfo As MapImageInfo = myMapImage.getBestMap(myMapImageOptions,
10, token) |
|
|
|
Dim myLineDesc As New LineDesc |
|
|
|
Dim myMapArea As New MapArea |
|
|
|
Dim myMapFusionOptions As New MapFusionOptions |
|
|
|
Dim myMapImageInfo As MapImageInfo = myMapImage.getBestMap(myMapImageOptions,
10, token) |
|
|
|
Dim myMapImageOptions As New MapImageOptions |
|
|
|
Dim myMapImageSize As New MapImageSize |
|
|
|
Dim myMapLegend As New MapLegend |
|
|
|
Dim myMarkerDesc As New MarkerDesc |
|
|
|
Dim myMobileDevice As New MobileDevice |
|
|
|
Dim myOrderBy As New OrderBy() |
|
|
|
Dim myPixelCoord As New PixelCoord() |
|
|
|
Dim myPlaceFinderInfoArray() As PlaceFinderInfo = myPlaceFinder.getInfo(myDataSourcesArray,
token) |
|
|
|
Dim myPlaceFinderOptions As New PlaceFinderOptions |
|
|
|
Dim myPoint As New Point |
|
|
|
Dim myPolygonDesc As New PolygonDesc |
|
|
|
Dim myReportInfo As ReportInfo = myReport.getCustomSiteReport(mySite,
myReportOptionsArray, myCustomReportVariablesArray, token) |
|
|
|
Dim myReportOptions As New ReportOptions |
|
|
|
Dim myResultSet As New ResultSet |
|
|
|
Dim myResultSetRange As New ResultSetRange |
|
|
|
Dim myRouteDisplayOptions As New RouteDisplayOptions |
|
|
|
Dim myRouteFinderOptions As New RouteFinderOptions |
|
|
|
Dim myRouteInfo As RouteInfo = myRouteFinder.findRoute(myRouteStopArray,myRouteFinderOptions,
token) |
|
|
|
Dim myRouteOptions As New RouteOptions |
|
|
|
Dim myRouteStop As New RouteStop |
|
|
|
Dim myRouteInfo As RouteInfo = myRouteFinder.findRoute(myRouteStopArray,
myRouteFinderOptions, token) |
|
|
|
Dim myRowData As New RowData |
|
|
|
Dim myScaleBarDesc As New ScaleBarDesc |
|
|
|
Dim mySearchOptions As New SearchOptions |
|
|
|
Dim myRouteInfo As RouteInfo = myRouteFinder.findRoute(myRouteStopArray,
myRouteFinderOptions, token) |
|
|
|
Dim myServiceInfo As ServiceInfo = myServiceInfoArray(0) |
|
|
|
Dim myServiceSummary As ServiceSummary = myServiceSummaryArray(0) |
|
|
|
Dim myServiceUsage As ServiceUsage = myServiceUsageArray(0) |
|
|
|
Dim mySimplePoint As New SimplePoint |
|
|
|
Dim mySite As New Site |
|
|
|
Dim mySpatialBuffer As New SpatialBuffer |
|
|
|
Dim spatialQueryInfoArray() As SpatialQueryInfo = mySpatialQuery.getAvailableFieldNames(myDataSources,token) |
|
|
|
Dim mySpatialQueryOptions As New SpatialQueryOptions |
|
|
|
Dim myStandardGeography As New StandardGeography |
|
|
|
Dim myStringSet As StringSet = myDataManager.getUniqueValues("MyDataFile",
"owner_id", myResultSetRange, token) |
|
|
|
Dim myThematicColors As New ThematicColors |
|
|
|
Dim myThematicData As New ThematicData |
|
|
|
coming soon |
|
|
|
Dim myThematicReportOptions As New ThematicReportOptions |
|
|
|
Dim myThematicVariableInfoArray() As ThematicVariableInfo
= getThematicVariables(myDatabase, myTable, token) |
|
|
|
Dim myUsage As myUsageInfo = myDataSourceUsage.usage |
|
|
|
Dim myUser As User = myUserUsage.user |
|
|
|
Dim myUserUsage As UserUsage = myUserUsageArray(0) |
|
Dim myAccountInfo As New AccountInfo |
|
|
|
Dim myAccountInfo As New AccountInfo |
|
|
|
AccountInfo myAccountInfo = new AccountInfo; |
|
Dim myAddressFinder As New AddressFinder |
|
|
|
Dim myAddressFinder As New AddressFinder |
|
|
|
Dim myAddressFinder As New AddressFinder |
|
|
|
Dim myAddressFinder As New AddressFinder |
|
|
|
Dim myAddressFinder As New AddressFinder |
|
|
|
Dim myAddressFinder As New AddressFinder |
|
Dim myAddressManager As New AddressManager |
|
|
|
Dim myAddressManager As New AddressManager |
|
|
|
Dim myAddressManager As New AddressManager |
|
|
|
Dim myAddressManager As New AddressManager |
|
|
|
Dim myAddressManager As New AddressManager |
|
|
|
Dim myAddressManager As New AddressManager |
|
Dim myAuthentication As New Authentication |
|
|
|
Dim
myAuthentication As New Authentication |
|
|
|
Dim myAuthentication As New Authentication |
|
|
|
Dim myAuthentication As New Authentication |
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
|
|
Dim myContentFinder As New ContentFinder |
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
DataFinder myDataFinder = new DataFinder; |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
|
|
Dim myDataManager As New DataManager |
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
|
|
Dim myMapImage As New MapImage |
|
Dim myPlaceFinder As New PlaceFinder |
|
|
|
Dim myPlaceFinder As New PlaceFinder |
|
|
|
Dim myPlaceFinder As New PlaceFinder |
|
Dim myPlaceFinderSample As New PlaceFinderSample |
|
|
|
Dim myPlaceFinderSample As New PlaceFinderSample |
|
|
|
Dim myPlaceFinderSample As New PlaceFinderSample |
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
|
|
Dim myReport As Report = New Report |
|
Dim myRouteFinder As New RouteFinder |
|
|
|
Dim myRouteFinder As New RouteFinder |
|
|
|
Dim myRouteFinder As New RouteFinder |
|
Dim mySpatialQuery As New SpatialQuery |
|
|
|
Dim mySpatialQuery As New SpatialQuery |
|
|
|
Dim mySpatialQuery As New SpatialQuery |
|
|
|
Dim mySpatialQuery As New SpatialQuery |
|
|
|
SpatialQuery mySpatialQuery = new SpatialQuery; |
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
|
|
Dim myUtility As New Utility |
|
Dim myWirelessLocation As New WirelessLocation |
|
|
|
Dim myWirelessLocation As New WirelessLocation |
|
|
|
Dim myWirelessLocation As New WirelessLocation |
|
|
|
Dim myWirelessLocation As New WirelessLocation |
|
|
|
Dim myWirelessLocation As New WirelessLocation |
|
|
|
Dim myWirelessLocation As New WirelessLocation |
Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.