Touchstone Re 2023 API Reference
GetUserGeocodeMatchMappingSets Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ObjectManagementServiceClient Class : GetUserGeocodeMatchMappingSets Method
Contains a GetUserGeocodeMatchMappingSetsRequest that identifies the Business Unit SID and SQL Instance SID associated with the mapping sets to retrieve.
Retrieves a list of user-supplied Geocode Match Mapping Sets.

You can manage the default geocode match mapping set value from the Touchstone application.

Syntax
Public Function GetUserGeocodeMatchMappingSets( _
   ByVal request As GetUserGeocodeMatchMappingSetsRequest _
) As GetUserGeocodeMatchMappingSetsResponse
Dim instance As ObjectManagementServiceClient
Dim request As GetUserGeocodeMatchMappingSetsRequest
Dim value As GetUserGeocodeMatchMappingSetsResponse
 
value = instance.GetUserGeocodeMatchMappingSets(request)
public GetUserGeocodeMatchMappingSetsResponse GetUserGeocodeMatchMappingSets( 
   GetUserGeocodeMatchMappingSetsRequest request
)

Parameters

request
Contains a GetUserGeocodeMatchMappingSetsRequest that identifies the Business Unit SID and SQL Instance SID associated with the mapping sets to retrieve.

Return Value

A GetUserGeocodeMatchMappingSetsResponse containing a list of User Geocode Match Mapping Sets in the specified business unit and SQL Server instance.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Server Instance SID to pass into this method, call the GetSqlInstances() method.

Example
The following example shows how to get a list of the user-supplied geocode match mapping sets associated with a given Business Unit using the GetUserGeocodeMatchMappingSets() method:
using AIR.Services.Common.Data;
using AIR.Services.ObjectManagement.Api;
using AIR.Services.ObjectManagement.Data;
using System;
            
public class SnippetGetUserGeocodeMatchMappingSets
{
private static void GetUserGeocodeMappingSets(int businessUnitSid, int sqlInstanceSid)
{
ObjectManagementServiceClient client = new ObjectManagementServiceClient();
GetUserGeocodeMatchMappingSetsRequest request = new GetUserGeocodeMatchMappingSetsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
GetUserGeocodeMatchMappingSetsResponse response = client.GetUserGeocodeMatchMappingSets(request);
    if ((response.Status.Code == StatusCode.Success))
    {
       foreach (UserGeocodeMatchMappingSet mappingSet in response.UserGeocodeMatchMappingSets)
       {
Console.WriteLine("------------------------------------------------------------");
Console.WriteLine("SID: " + mappingSet.ID);
Console.WriteLine("Name: " + mappingSet.Name);
}
}
}
}
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

ObjectManagementServiceClient Class
ObjectManagementServiceClient Members