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


IGPUtilities.CreateDataElement Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPUtilities.CreateDataElement Method

Creates a new data element object from the catalog object specified by the given path, data type, and optional workspace.

[Visual Basic .NET]
Public Function CreateDataElement ( _
    ByVal catalogPath As String, _
    ByVal pDataType As IGPDataType, _
    ByVal optionalWorkspace As String _
) As IDataElement
[C#]
public IDataElement CreateDataElement (
    string catalogPath,
    IGPDataType pDataType,
    string optionalWorkspace
);
[C++]
HRESULT CreateDataElement(
  BSTR catalogPath,
  IGPDataType* pDataType,
  BSTR optionalWorkspace,
  IDataElement** DataElement
);
[C++]

Parameters catalogPath [in] catalogPath is a parameter of type BSTR pDataType [in]
pDataType is a parameter of type IGPDataType optionalWorkspace [in] optionalWorkspace is a parameter of type BSTR DataElement [out, retval]
DataElement is a parameter of type IDataElement

Product Availability

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

See Also

IGPUtilities Interface