Public Function DeleteUserEventSet( _
ByVal As DeleteUserEventSetRequest _
) As DeleteUserEventSetResponse
Dim instance As EventSetManagementServiceClient
Dim request As DeleteUserEventSetRequest
Dim value As DeleteUserEventSetResponse
value = instance.DeleteUserEventSet(request)
public DeleteUserEventSetResponse DeleteUserEventSet(
DeleteUserEventSetRequest
)
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.
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");
}
}
}
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