FindByIDSpecification.EntityIDs Property

Array of unique entity IDs. Only points of interest with matching entity IDs are returned by the FindServiceSoap.FindByID method and the rest are ignored.

Public Property EntityIDs As System.Int32()
[C#]
public property System.Int32[] EntityIDs

Remarks

If this property is not set, the FindServiceSoap.FindByID method throws an exception.

The TopScore property is set to 1.0 for all returned find results.

Example

 
[Visual Basic]
    'This example assumes that the MapPoint Web Service 
    'namespace has been 
    Dim findServiceSoap As FindServiceSoap = New FindServiceSoap
    findServiceSoap.Credentials = _
        New NetworkCredential(myMapPointUserId, mySecurePassword)

    Dim findByIDSpecification As FindByIDSpecification = New FindByIDSpecification
    findByIDSpecification.DataSourceName = "MapPoint.FourthCoffeeSample"
    findByIDSpecification.Filter = New FindFilter
    findByIDSpecification.Filter.EntityTypeName = "FourthCoffeeShops"
    Dim nums1 As Integer() = New Integer() {-21835, -21836}
    findByIDSpecification.EntityIDs = nums1
    Dim findResults As FindResults = findServiceSoap.FindByID(findByIDSpecification)
    
 
[C#]
   //This example assumes that the MapPoint Web Service 
   //namespace has been imported 

   FindServiceSoap findService = new FindServiceSoap();
   findService.Credentials = 
    new System.Net.NetworkCredential(myMapPointUserId, mySecurePassword);

 
   FindByIDSpecification findbyidspec = new FindByIDSpecification();

   findbyidspec.DataSourceName = "MapPoint.FourthCoffeeSample";
   findbyidspec.Filter = new FindFilter();
   findbyidspec.Filter.EntityTypeName = "FourthCoffeeShops";
   int[] arrayID = {-21835, -21836};
   findbyidspec.EntityIDs = arrayID;

   FindResults foundResults;
   foundResults = findService.FindByID(findbyidspec);

   
 

See Also

  FindByIDSpecification Class  |   FindByID Method  |   Entity Class