Touchstone 11.0 API Reference
SubmitDeleteLocation Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ExposureManagementServiceClient Class : SubmitDeleteLocation Method
Contains a SubmitDeleteLocationRequest that identifies the Touchstone-generated Location Sequential Identifier (SID) of the Location that you want to delete, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.
Deletes a single Touchstone® Location, including any associated Location Terms.
Syntax
Public Function SubmitDeleteLocation( _
   ByVal request As SubmitDeleteLocationRequest _
) As SubmitDeleteLocationResponse
Dim instance As ExposureManagementServiceClient
Dim request As SubmitDeleteLocationRequest
Dim value As SubmitDeleteLocationResponse
 
value = instance.SubmitDeleteLocation(request)

Parameters

request
Contains a SubmitDeleteLocationRequest that identifies the Touchstone-generated Location Sequential Identifier (SID) of the Location that you want to delete, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.

Return Value

A SubmitDeleteLocationResponse containing the Activity SID that uniquely identifies the asynchronous web service call that you made to delete the specified Location.
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 Data Source SID to pass into this method, call the GetDataSources() method.

To find the Location SID to pass into this method, call the GetLocations() method.

Example
The following example shows how to delete a Touchstone Location using the SubmitDeleteLocation() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureManagement.Api;
            
class SnippetSubmitDeleteLocationRequest
{
    private static void DeleteLocation(int businessUnitSid, int sqlInstanceSid, int locationSid, int dataSourceSid)
    {
        ExposureManagementServiceClient exposureManagementClient = new ExposureManagementServiceClient();
        SubmitDeleteLocationRequest request = new SubmitDeleteLocationRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.LocationSid = locationSid;
        request.DataSourceSid = dataSourceSid;
            
        SubmitDeleteLocationResponse response = exposureManagementClient.SubmitDeleteLocation(request);
            
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Request successfully 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

ExposureManagementServiceClient Class
ExposureManagementServiceClient Members