This document is archived and information here might be outdated.  Recommended version.


IGPUtilities.OpenDatasetFromLocation Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPUtilities.OpenDatasetFromLocation Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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].

See Also

IGPUtilities Interface