Touchstone 11.0 API Reference
GetUserLineOfBusinessesByCountry Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ExposureViewSummaryServiceClient Class : GetUserLineOfBusinessesByCountry Method
Contains a GetUserLineOfBusinessesByCountryRequest that identifies the ExposureViewSid for which you want to retrieve the lines of business, along with the associated Touchstone-generated Business Unit Sequential Identifier (SID) and
Submits a request to retrieve DistributionByCountryLineOfBusiness.
Syntax
Public Function GetUserLineOfBusinessesByCountry( _
   ByVal request As GetUserLineOfBusinessesByCountryRequest _
) As GetUserLineOfBusinessesByCountryResponse
Dim instance As ExposureViewSummaryServiceClient
Dim request As GetUserLineOfBusinessesByCountryRequest
Dim value As GetUserLineOfBusinessesByCountryResponse
 
value = instance.GetUserLineOfBusinessesByCountry(request)
public GetUserLineOfBusinessesByCountryResponse GetUserLineOfBusinessesByCountry( 
   GetUserLineOfBusinessesByCountryRequest request
)

Parameters

request
Contains a GetUserLineOfBusinessesByCountryRequest that identifies the ExposureViewSid for which you want to retrieve the lines of business, along with the associated Touchstone-generated Business Unit Sequential Identifier (SID) and

Return Value

A GetUserLineOfBusinessesByCountryResponse containing the Lines of Business by country associated with the Exposure View SID specified in the request.
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.

Example
using AIR.Services.Common.Data;
using AIR.Services.ExposureViewSummary.Api;
using System;
            
class SnippetGetUserLineOfBusinessesByCountry
{
private static void GetUserLineOfBusinessesByCountry(int businessUnitSid, int sqlInstanceSid, int exposureViewSid)
{
ExposureViewSummaryServiceClient client = new ExposureViewSummaryServiceClient();
GetUserLineOfBusinessesByCountryRequest request = new GetUserLineOfBusinessesByCountryRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ExposureViewSid = exposureViewSid;
GetUserLineOfBusinessesByCountryResponse response = client.GetUserLineOfBusinessesByCountry(request);
        if (response.Status.Code == StatusCode.Success)
   {
       foreach (var lob in response.DistributionByCountryLineOfBusiness)
       {
        Console.WriteLine("Country: " + lob.CountryName + " Line of Business: " + lob.UserLineOfBusiness);
}
}
}
}
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

ExposureViewSummaryServiceClient Class
ExposureViewSummaryServiceClient Members