Touchstone 11.0 API Reference
SubmitDeleteExposureView Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ProjectManagementServiceClient Class : SubmitDeleteExposureView Method
Contains a SubmitDeleteExposureViewRequest that identifies the Touchstone-generated Exposure View Sequential Identifier (SID) of the Exposure View that you want to delete, along with the associated Business Unit SID and SQL Instance SID.
Deletes a single Touchstone® Exposure View.
Syntax
Public Function SubmitDeleteExposureView( _
   ByVal request As SubmitDeleteExposureViewRequest _
) As SubmitDeleteExposureViewResponse
Dim instance As ProjectManagementServiceClient
Dim request As SubmitDeleteExposureViewRequest
Dim value As SubmitDeleteExposureViewResponse
 
value = instance.SubmitDeleteExposureView(request)

Parameters

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

Return Value

A SubmitDeleteExposureViewResponse containing the Activity SID that uniquely identifies the asynchronous web service call that you made to delete the specified Exposure View.
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 Exposure View SID to pass into this method, call the GetExposureViews() method. (To find the Project SID to pass into the GetExposureViews() method, call the GetProjects() method.)

Example
The following example shows how to delete a Touchstone Exposure View using the SubmitDeleteExposureView() method:
private static void SubmitDeleteExposureView(int businessUnitSid, int sqlInstanceSid, int exposureViewSid, bool purgeExposureSets, bool purgeResults)
{
    ProjectManagementServiceClient projectClient = new ProjectManagementServiceClient();
    SubmitDeleteExposureViewRequest request = new SubmitDeleteExposureViewRequest();
    request.BusinessUnitSid = businessUnitSid;
    request.SqlInstanceSid = sqlInstanceSid;
    request.ExposureViewSid = exposureViewSid;
    request.PurgeExposureSets = purgeExposureSets;
    request.PurgeResults = purgeResults;
    SubmitDeleteExposureViewResponse response = projectClient.SubmitDeleteExposureView(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