FindByIDSpecification.Options Property
FindByIDSpecification.Options Property
The search options (FindOptions object), which may include the range of results and a flag to identify which objects are desired in the returned results.
Public Options As FindOptions
[C#]
public FindOptions Options;
Remarks
- The ThresholdScore and SearchContext properties have no effect on FindServiceSoap.FindByID method.
Example
[Visual Basic]
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#]
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 | FindOptions Class