Click or drag to resize
LegacyTelogisServiceFindTeams Method
Print this page
Finds Teams with a matching tag (if its supplied non-null) and matching properties. All fields have to match.

Namespace: Telogis.API
 
Syntax
public Team[] FindTeams(
	string tag,
	Property[] properties
)

Parameters

tag
Type: SystemString
Only teams 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 teams on. A team 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: Team
An array of Team objects matching the given tag and properties
Remarks
A Team without each property specified in the properties argument will not be found by this query.
Examples

See FindFleets(String, Property) .

By setting both tag and properties arguments to null, a list of all Teams can be obtained. If you have a large number of Teams you should use the ListTeams(Int32, Int32) method to return only a subset of Team objects.

C#
Team[] teams = service.FindTeams(null, null);
foreach (Team t in teams) {
    Console.WriteLine("ID[{0}], TAG[{1}]", t.ID, t.Tag);
}
See Also