EntityPropertyValue.Name Property

The name of a property for a specific entity. String. Limit is 128 characters.

Public Dim Name As String
    Member of [Namespace].EntityPropertyValue
[C#]
public System.String Name
    Member of [Namespace].EntityPropertyValue

Remarks

Example

 
[Visual Basic] 
'This example assumes that the service instance 
''findService' has already been created and that 
'the MapPoint Web Service namespace has been imported 

'Output the address property for each 
'MapPoint.FourthCoffeeSample store nearby
Dim findNearbySpec As New FindNearbySpecification()
findNearbySpec.DataSourceName = "MapPoint.FourthCoffeeSample"
findNearbySpec.Distance = 1
findNearbySpec.LatLong = New LatLong()
findNearbySpec.LatLong.Latitude = 47.6
findNearbySpec.LatLong.Longitude = -122.33
findNearbySpec.Filter = New FindFilter()
findNearbySpec.Filter.EntityTypeName = "FourthCoffeeShops"

Dim foundResults As FindResults
foundResults = findService.FindNearby(findNearbySpec)
Console.WriteLine("Fourth Coffee Shop Store List")
Dim fr As FindResult
For Each fr In foundResults.Results
    Console.WriteLine("The " + fr.FoundLocation.Entity.Properties(0).Name _
        + " of " + fr.FoundLocation.Entity.Name + " is " _
        + fr.FoundLocation.Entity.Properties(0).Value.ToString())
Next

 
[C#]
//This example assumes that the service instance 
//'findService' has already been created and that 
//the MapPoint Web Service namespace has been imported 

//Output the address property for each 
//MapPoint.FourthCoffeeSample store nearby
FindNearbySpecification findNearbySpec  = new FindNearbySpecification();
findNearbySpec.DataSourceName = "MapPoint.FourthCoffeeSample";
findNearbySpec.Distance = 1;
findNearbySpec.LatLong = new LatLong();
findNearbySpec.LatLong.Latitude = 47.6;
findNearbySpec.LatLong.Longitude = -122.33;
findNearbySpec.Filter = new FindFilter();
findNearbySpec.Filter.EntityTypeName = "FourthCoffeeShops";

FindResults foundResults;
foundResults = findService.FindNearby(findNearbySpec);
Console.WriteLine("Fourth Coffee Shop Store List");
foreach(FindResult fr in foundResults.Results)
{
    Console.WriteLine("The " + fr.FoundLocation.Entity.Properties[0].Name 
        + " of " + fr.FoundLocation.Entity.Name + " is "
        + fr.FoundLocation.Entity.Properties[0].Value.ToString());

}

 

See Also

EntityPropertyValue Class