Share via


MimeData.ContentID Property

Name of the returned image. String. The name consists of the string "map" appended with a number representing an index into the array of maps returned. For example, "map000.gif" is the map in a resulting MapImage object. If more than one MapImage object is returned in a call, the numbers are sequentially incremented based on the array index.

Public Dim ContentID As String
    Member of [Namespace].MimeData
[C#]
public System.String ContentID
    Member of [Namespace].MimeData

Example

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

'Get a map
Dim myViews(0) As ViewByScale
myViews(0) = New ViewByScale()
myViews(0).CenterPoint = New LatLong()
myViews(0).CenterPoint.Latitude = 40
myViews(0).CenterPoint.Longitude = -120
myViews(0).MapScale = 5000

Dim mapSpec As New MapSpecification()
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Views = myViews

Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)

'Output the type and ID of the returned image
Console.WriteLine(mapImages(0).MimeData.ContentID)
Console.WriteLine(mapImages(0).MimeData.MimeType)

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

//Get a map
ViewByScale[] myViews = new ViewByScale[1];
myViews[0] = new ViewByScale();
myViews[0].CenterPoint = new LatLong();
myViews[0].CenterPoint.Latitude = 40;
myViews[0].CenterPoint.Longitude = -120;
myViews[0].MapScale = 5000;

MapSpecification mapSpec  = new MapSpecification();
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Views = myViews;

MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);

//Output the type and ID of the returned image
Console.WriteLine(mapImages[0].MimeData.ContentID);
Console.WriteLine(mapImages[0].MimeData.MimeType);

 

See Also

MimeData Class | MapImage Class