Touchstone 11.0 API Reference
SubmitDeleteResults Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ProjectManagementServiceClient Class : SubmitDeleteResults Method
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.
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.

Syntax
Public Function SubmitDeleteResults( _
   ByVal request As SubmitDeleteResultsRequest _
) As SubmitDeleteResultsResponse
Dim instance As ProjectManagementServiceClient
Dim request As SubmitDeleteResultsRequest
Dim value As SubmitDeleteResultsResponse
 
value = instance.SubmitDeleteResults(request)

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.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Analysis SID to pass into this method, call one of the following methods:

Example
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);
        }
    }
}
Requirements

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

See Also

Reference

ProjectManagementServiceClient Class
ProjectManagementServiceClient Members