Searches the ServiceLayer for a MapItem with a specified name.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
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 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.Remarks
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 2.0.0.1500.