Touchstone 11.0 API Reference
DeleteUserEventSet Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > EventSetManagementServiceClient Class : DeleteUserEventSet Method
Contains a DeleteUserEventSetRequest that identifies the Business Unit SID, SQL Instance SID, and Event Set Sequential Identifier (SID) associated with the user-generated event set to delete.
Deletes a user-generated Event Set.
Syntax
Public Function DeleteUserEventSet( _
   ByVal request As DeleteUserEventSetRequest _
) As DeleteUserEventSetResponse
Dim instance As EventSetManagementServiceClient
Dim request As DeleteUserEventSetRequest
Dim value As DeleteUserEventSetResponse
 
value = instance.DeleteUserEventSet(request)

Parameters

request
Contains a DeleteUserEventSetRequest that identifies the Business Unit SID, SQL Instance SID, and Event Set Sequential Identifier (SID) associated with the user-generated event set to delete.

Return Value

A DeleteUserEventSetResponse containing the the response to the web service call that you made to delete the event set.
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 Event Set SID to pass into this method, call the GetEventSets() method.

Example
The following example shows how to delete a user-generated event set using the DeleteUserEventSet() method:
using AIR.Services.Common.Data;
using AIR.Services.EventSetManagement.Api;
using System;
public class SnippetDeleteUserEventSet
{
            
            
   private static void DeleteUserEventSet(int businessUnitSid, int sqlInstanceSid, int eventSetSid)
   {
       EventSetManagementServiceClient client = new EventSetManagementServiceClient();
       DeleteUserEventSetRequest request = new DeleteUserEventSetRequest();
       request.BusinessUnitSid = businessUnitSid;
       request.SqlInstanceSid = sqlInstanceSid;
       request.EventSetSid = eventSetSid;
       DeleteUserEventSetResponse response = client.DeleteUserEventSet(request);
       if ((response.Status.Code == StatusCode.Success))
       {
           Console.WriteLine("User's EventSet deleted successfully");
       }
   }
}
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

EventSetManagementServiceClient Class
EventSetManagementServiceClient Members