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


IGpDispatch.CreateObject Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGpDispatch Interface > IGpDispatch.CreateObject Method
ArcGIS Developer Help

IGpDispatch.CreateObject Method

Creates a geoprocessing object that can be used in a scripting environment.

[Visual Basic .NET]
Public Function CreateObject ( _
    ByRef pObjectName As Object, _
    [ByRef pExtraArg As Object] _
) As Object
[C#]
public object CreateObject (
    ref object pObjectName,
    ref object pExtraArg
);
[C++]
HRESULT CreateObject(
  Variant* pObjectName,
  Variant* pExtraArg
);
[C++]
Parameters
pObjectName [in]

pObjectName is a parameter of type VARIANT* pExtraArg [in, optional]
pExtraArg is a parameter of type VARIANT*

Product Availability

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

See Also

IGpDispatch Interface