Searches the Map for a MapItem with a specified name.

Namespace:  ESRI.ArcGISExplorer.Mapping
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

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

Parameters

name
Type: System..::.String
A case-sensitive string containing the name of a MapItem.

Return Value

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

Remarks

This method performs a case-sensitive search of items in the Map by MapItem.Name. The name is not guaranteed to be unique will return the first item in the Map with a matching name. If you want to reliably find a MapItem use the FindById(Guid) method with a specified MapItem.Id.

See Also

Relate Topics:
  Contains Method
  FindById Method
  GetMapItems(T) Method
Created by Atop CHM to web converter,© 2009 all right reserved.