FindSpecification.EntityTypeNames Property
FindSpecification.EntityTypeNames Property
An array of strings representing the names of the entity types (EntityType.Name property) to find. String[].
Public EntityTypeNames As System.String()
[C#]
public System.String[] EntityTypeNames;
Remarks
The EntityTypeNames property is used with the specification parameter of the FindServiceSoap.Find method.
If the EntityTypeNames property is null or a zero-length array, all entity types specified in the DataSourceName property are searched.
Example
[Visual Basic]
'Return only city entities in the search
Dim myEntityTypeNames(0) As String
myEntityTypeNames(0) = "PopulatedPlace"
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle"
findSpec.EntityTypeNames = myEntityTypeNames
Dim foundResults As FindResults
foundResults = findService.Find(findSpec)
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next
[C#]
//Return only city entities in the search
string[] myEntityTypeNames = new string[1];
myEntityTypeNames[0] = "PopulatedPlace";
FindSpecification findSpec = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle";
findSpec.EntityTypeNames = myEntityTypeNames;
FindResults foundResults;
foundResults = findService.Find(findSpec);
foreach(FindResult fr in foundResults.Results)
{
Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}
See Also
FindSpecification Class | EntityType.Name Property | FindServiceSoap.Find Method | FindSpecification.DataSourceName Property