ArcGIS Explorer Component Help |
Geodatabase..::.GetGeodatabaseFolders Method |
Geodatabase Class Example See Also |
Returns a collection of GeodatabaseFolder objects which represents all the feature datasets in a geodatabase.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public ReadOnlyCollection<GeodatabaseFolder> GetGeodatabaseFolders() |
Visual Basic (Declaration) |
---|
Public Function GetGeodatabaseFolders As ReadOnlyCollection(Of GeodatabaseFolder) |
Return Value
A ReadOnlyCollection object consisting of GeodatabaseFolder objects each of which represents a feature dataset that may contain a number of related feature classes sharing the same CoordinateSystem.Examples
The code below iterates over all the feature datasets in a geodatabase and prints the name of the CoordinateSystem for each one.
CopyC#
//Open the geodatabase Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb"); //Loop over an enumeration of all feature datasets foreach (GeodatabaseFolder gdbFolder in fileGdb.GetGeodatabaseFolders()) { //Print out the name of the coordinate system assigned to each feature dataset System.Diagnostics.Debug.Print(gdbFolder.CoordinateSystem.Name); }
CopyVB.NET
'Open the geodatabase Dim fileGdb As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb") 'Loop over an enumeration of all feature datasets For Each folder As GeodatabaseFolder In fileGdb.GetGeodatabaseFolders() 'Print out the name of the coordinate system assigned to each feature dataset System.Diagnostics.Debug.Print(folder.CoordinateSystem.Name) Next