Searches the ServiceLayer for a MapItem with a specified name.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: (


public MapItem FindByName(
	string name
Visual Basic (Declaration)
Public Function FindByName ( _
	name As String _
) As MapItem


Type: System..::.String

A case-sensitive string containing the name of a MapItem.

Return Value

The first MapItem in the ServiceLayer that matches the specified name. Returns nullNothingnullptra null reference (Nothing in Visual Basic) if a MapItem with the name is not found in the ServiceLayer.


This method performs a case-sensitive search of items in the ServiceLayer by MapItem.Name. MapItem names are not unique within a parent, and therefore this method will return the first item in the with a matching name. If you want to reliably find a specific MapItem, use the FindById(Guid) method with a specified MapItem.Id instead.

Version Information: This method is supported from version

See Also