ArcObjects Library Reference  (GeoDatabase)    

IDataset.Copy Method

Copies this dataset to a new dataset with the specified name.

[Visual Basic 6.0]
Function Copy(
    ByVal copyName As String, _
    ByVal copyWorkspace As IWorkspace _
) As IDataset
[Visual Basic .NET]
Public Function Copy ( _
    ByVal copyName As String, _
    ByVal copyWorkspace As IWorkspace _
) As IDataset
[C#]
public IDataset Copy (
    string copyName,
    IWorkspace copyWorkspace
);
[Java]
public IDataset copy (
    String copyName,
    IWorkspace copyWorkspace
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Copy(
  BSTR copyName,
  IWorkspace* copyWorkspace,
  IDataset** CopyDataset
);
[C++]

Parameters

copyName [in]

  copyName is a parameter of type BSTR

copyWorkspace [in]

  copyWorkspace is a parameter of type IWorkspace

CopyDataset [out, retval]

  CopyDataset is a parameter of type IDataset

Product Availability

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

Remarks

IDataset::Copy should only be used with datasets from file-based data sources, such as shapefiles and coverages.

See Also

IDataset Interface