ArcObjects Library Reference (DataSourcesRaster)  

IRasterTypeOperation.OpenRasterDataset Method

Opens a raster dataset even if it does not exist.

[Visual Basic .NET]
Public Function OpenRasterDataset ( _
    ByVal dataSource As String, _
    ByVal pRasterInfo As IRasterInfo, _
    ByVal overwrite As Boolean _
) As IRasterDataset
[C#]
public IRasterDataset OpenRasterDataset (
    string dataSource,
    IRasterInfo pRasterInfo,
    bool overwrite
);
[C++]
HRESULT OpenRasterDataset(
  BSTR dataSource,
  IRasterInfo* pRasterInfo,
  VARIANT_BOOL overwrite,
  IRasterDataset** ppRasterDataset
);
[C++]

Parameters

dataSource [in]   dataSource is a parameter of type BSTR pRasterInfo [in]

  pRasterInfo is a parameter of type IRasterInfo

overwrite [in]   overwrite is a parameter of type VARIANT_BOOL ppRasterDataset [out, retval]

  ppRasterDataset is a parameter of type IRasterDataset

Product Availability

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

See Also

IRasterTypeOperation Interface