Deletes a single Touchstone®
Layer, including any associated
Sublimits.
Public Function DeleteLayer( _
ByVal As DeleteLayerRequest _
) As DeleteLayerResponse
Dim instance As ExposureManagementServiceClient
Dim request As DeleteLayerRequest
Dim value As DeleteLayerResponse
value = instance.DeleteLayer(request)
public DeleteLayerResponse DeleteLayer(
DeleteLayerRequest
)
Parameters
- request
- Contains a DeleteLayerRequest that identifies the Touchstone-generated Layer Sequential Identifier (SID) of the Layer that you want to delete, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.
Return Value
A DeleteLayerResponse containing the Status of the Layer deletion.
The following example shows how to delete a Touchstone Layer using the
DeleteLayer()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.Common.Exposure.Data;
using AIR.Services.ExposureManagement.Api;
class SnippetDeleteLayerRequest
{
private static void DeleteLayer(int businessUnitSid, int sqlInstanceSid, int layerSid, int dataSourceSid)
{
ExposureManagementServiceClient exposureManagementClient = new ExposureManagementServiceClient();
DeleteLayerRequest request = new DeleteLayerRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.DataSourceSid = dataSourceSid;
request.LayerSid = layerSid;
DeleteLayerResponse response = exposureManagementClient.DeleteLayer(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Successfully deleted the Layer");
}
}
}
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