Creates a raster dataset name object from the given catalog path.
[Visual Basic 6.0] Function CreateRasterDatasetName(
ByVal catalogPath As String _
) As IName
[Visual Basic .NET] Public Function CreateRasterDatasetName ( _ ByVal catalogPath As String _ ) As IName
[C#] public IName CreateRasterDatasetName ( string catalogPath );
[Java] public IName createRasterDatasetName ( String catalogPath ) throws IOException, AutomationException
[C++] HRESULT CreateRasterDatasetName( BSTR catalogPath, IName** ppName );
Parameters
catalogPath [in]
catalogPath is a parameter of type BSTR
ppName [out, retval]
ppName is a parameter of type IName
The CreateRasterDatasetName method takes in an ArcCatalog path string of a raster dataset and returns a Name object [IName].
See the included code sample below.
The following code sample shows how to create a raster dataset name from the GPUtilites object.
'Create the GPUtilities object
Dim pGPUtils as IGPUtilities
Set pGPUtils = New GPUtilities
'Create the IDataset object
Dim pDataset as IDataset
Set pDataset = pGPUtils.CreateRasterDatasetName("D:\GPQA\CoreData\Global\rock_pc2")