Retrieves the results of a Touchstone® Zone Geospatial Analysis, including the Zone ID, name, and peril description for each
Zone Result, as well as the total risk count and the total replacement value of the insured properties in the specified Zone.
Parameters
- request
- Contains a GetZoneExposureConcentrationAnalysisResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the Zone Geospatial Analysis for which you want to retrieve the results, along with the associated Business Unit SID, SQL Instance SID, optional Paging Info, and optional Sorting Info.
Return Value
A
GetZoneExposureConcentrationAnalysisResultsResponse containing the
results of the Zone Geospatial Analysis that you have requested, as well as information describing the actual
paging layout of the analysis results.
The following example shows how to retrieve the results of a Touchstone Zone Geospatial Analysis using the
GetZoneExposureConcentrationAnalysisResults()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureConcentrationAnalysis.Api;
using AIR.Services.ExposureConcentrationAnalysis.Data;
class SnippetGetZoneExposureConcentrationAnalysisResultsRequest
{
private static void GetZoneExposureConcentrationAnalysisResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
{
ExposureConcentrationAnalysisServiceClient ecaClient = new ExposureConcentrationAnalysisServiceClient();
GetZoneExposureConcentrationAnalysisResultsRequest request = new GetZoneExposureConcentrationAnalysisResultsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalysisSid = analysisSid;
/// Implement logic to loop through all the records.
int page = 1; int pageSize = 20;
request.PagingInfo = new PagingInfo { PageNumber = page, PageSize = pageSize };
GetZoneExposureConcentrationAnalysisResultsResponse response = ecaClient.GetZoneExposureConcentrationAnalysisResults(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (ZoneResult zone in response.ZoneResults)
{
Console.WriteLine("Accumulator SID: " + zone.ID);
Console.WriteLine("Name: " + zone.Name);
Console.WriteLine("Total Risk Count: " + zone.RiskCount);
Console.WriteLine("Location Count: " + zone.LocationCount);
Console.WriteLine("Total Replacement Value: " + zone.TotalReplacementValue);
Console.WriteLine("Peril: " + zone.PerilDescription);
}
}
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2