LegacyTelogisServiceFindFleets Method |
Print this page
Finds Fleets with a matching tag (if its supplied non-null) and matching properties.
All fields have to match.
Namespace: Telogis.API Syntax public Fleet[] FindFleets(
string tag,
Property[] properties
)
Public Function FindFleets (
tag As String,
properties As Property()
) As Fleet()
Parameters
- tag
- Type: SystemString
Only fleets with tags that match this value will be returned.
Use null to match all tags.
- properties
- Type: Telogis.APIProperty
An array of properties to filter fleets on. A fleet
with properties A and B will not match a search for markers with property A,
regardless of the property A value. Use null to match all property combinations.
Return Value
Type:
Fleet
An array of fleets matching the given tag and properties.
Remarks
A Fleet without every property specified in the properties argument
will not be found by this query.
Examples
Fleet[] allFleets = myService.FindFleets(null, null);
Fleet[] taggedFleets = myService.FindFleets("Delivery Vehicles", null);
Fleet[] someFleets = myService.FindFleets("Delivery Vehicles", props);
someFleets = myService.FindFleets(null, props);
See Also