Deletes a single set of Touchstone® Analysis results.
An Analysis is a single execution of an analytical process, such as a detailed Loss Analysis, policy Exposure Analysis, Data Quality Analysis, Hazard Analysis, or Spatial Analysis. Each of these different Analysis types is derived from AnalysisBase.
Parameters
- request
- Contains a SubmitDeleteResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the set of Analysis results that you want to delete, along with the associated Business Unit SID and SQL Instance SID.
Return Value
A
SubmitDeleteResultsResponse containing the
Activity SID that uniquely identifies the asynchronous web service call that you made to delete the specified set of Analysis results.
The following example shows how to delete a set of Touchstone Analysis results using the
SubmitDeleteResults()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ProjectManagement.Api;
class SnippetSubmitDeleteResultsRequest
{
private static void SubmitDeleteResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
{
ProjectManagementServiceClient projectClient = new ProjectManagementServiceClient();
SubmitDeleteResultsRequest request = new SubmitDeleteResultsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalysisSid = analysisSid;
SubmitDeleteResultsResponse response = projectClient.SubmitDeleteResults(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Delete Exposure View Request submitted with Activity SID: " + response.ActivitySid);
}
}
}
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