Interface ISaveAs
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to methods for saving as a new Dataset.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("C7A92E97-597E-4A69-A872-29CB60B5E0DB")]
public interface ISaveAs
Methods
CanSaveAs(string)
Checks if it's can be saved as a new persistent Dataset of a given format.
bool CanSaveAs(string Format)
Parameters
Formatstring
Returns
SaveAs(string, IWorkspace, string)
Creates a new persistent Dataset of a given format.
IDataset SaveAs(string Name, IWorkspace Workspace, string Format)
Parameters
NamestringWorkspaceIWorkspaceFormatstring
Returns
Remarks
The format strings used for the supported formats are below, and they are case sensitive:
| Format Name | String Used |
|---|---|
| Imagine | "IMAGINE Image" |
| TIFF | "TIFF" |
| GRID | "GRID" |
| JPEG | "JPG" |
| JP2000 | "JP2" |
| BMP | "BMP" |
| PNG | "PNG" |
| GIF | "GIF" |
| PCI Raster | "PIX" |
| X11 Pixmap | "XPM" |
| PCRaster | "MAP" |
| Memory Raster | "MEM" |
| HDF4 | "HDF4" |
| BIL | "BIL" |
| BIP | "BIP" |
| BSQ | "BSQ" |
| Idrisi Raster Format | "RST" |
| ENVI Raster Format | "ENVI" |
| Geodatabase Raster | "GDB" |
Note, SaveAs will return a RasterDataset, to prevent from ISaveAs holding the output, .NET ReleaseCOMObject needs to be called to release the referene to the output raster dataset:
System.Runtime.InteropServices.Marshal.ReleaseComObject(outRasterDS);