FindByIDSpecification.Filter Property
The filter (FindFilter object) to apply to the results; that is, the specific entity type, properties, and values that the returned results must match. Required.
Public Property Filter As [Namespace].FindFilter
[C#]
public property [Namespace].FindFilter Filter
Remarks
- The Filter property is used with the specification parameter of the FindServiceSoap.FindByID method.
- The Filter property is required; otherwise, a SOAP fault is returned.
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 | FindFilter Class