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


IGpDispatch.CreateObject Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geoprocessing)  

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