Public Function SubmitDeleteExposureView( _
ByVal As SubmitDeleteExposureViewRequest _
) As SubmitDeleteExposureViewResponse
Dim instance As ProjectManagementServiceClient
Dim request As SubmitDeleteExposureViewRequest
Dim value As SubmitDeleteExposureViewResponse
value = instance.SubmitDeleteExposureView(request)
public SubmitDeleteExposureViewResponse SubmitDeleteExposureView(
SubmitDeleteExposureViewRequest
)
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.
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);
}
}
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