ArcGIS Explorer Component Help |
Folder..::.FindByName Method |
Folder Class See Also |
Searches the Folder for a child 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 Folder that matches the specified name. Returns nullNothingnullptra null reference (Nothing in Visual Basic) if a MapItem with the name is not found in the Folder.Remarks
This method performs a case-sensitive search of items in the Folder 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.