Retrieves a list of the existing
event sets in a given
Business Unit and
SQL Server Instance.
Parameters
- request
- Contains a GetEventSetsRequest that identifies the Business Unit Sequential Identifier (SID) and SQL Instance SID associated with the list of event sets to retrieve.
Return Value
A
GetEventSetsResponse that contains a
list of event sets in the specified SQL server instance and business unit.
The following example shows how to retrieve a list of the existing Event Sets in a given Business Unit and SQL Server Instance using the
GetEventSets()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.AggregateLossAnalysis.Api;
using System;
class SnippetGetEventSets
{
private static void GetEventSets(int businessUnitSid, int sqlInstanceSid)
{
ReinsuranceAggregateLossAnalysisServiceClient client = new ReinsuranceAggregateLossAnalysisServiceClient();
GetEventSetsRequest request = new GetEventSetsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
GetEventSetsResponse response = client.GetEventSets(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (var eventset in response.EventSets)
{
Console.WriteLine("SID: " + eventset.Sid + " Name: " + eventset.Name);
}
}
}
}
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