This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.OpenDatasetFromLocation Method (ArcObjects .NET 10.5 SDK) |
Opens the dataset object from the given catalog path.
[Visual Basic .NET] Public Function OpenDatasetFromLocation ( _ ByVal catalogPath As String _ ) As IDataset
[C#] public IDataset OpenDatasetFromLocation ( string catalogPath );
[C++]
HRESULT OpenDatasetFromLocation(
BSTR catalogPath,
IDataset** ppDataset
);
[C++]
Parameters catalogPath [in] catalogPath is a parameter of type BSTR ppDataset [out, retval]
ppDataset is a parameter of type IDataset
The OpenDatasetFromLocation method provides a quick way to get a dataset from its location path string. It takes in an ArcCatalog path string and returns a Dataset object [IDataset].