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


IGpDispatch.CreateScratchName Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGpDispatch.CreateScratchName Method

Creates a scratch name for the given workspace.

[Visual Basic .NET]
Public Function CreateScratchName ( _
    [ByRef Prefix As Object], _
    [ByRef Suffix As Object], _
    [ByRef DataType As Object], _
    [ByRef Workspace As Object] _
) As String
[C#]
public string CreateScratchName (
    ref object Prefix,
    ref object Suffix,
    ref object DataType,
    ref object Workspace
);
[C#]

Optional Values

Prefix   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
Suffix   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
DataType   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
Workspace   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT CreateScratchName(
  VARIANT* Prefix,
  VARIANT* Suffix,
  VARIANT* DataType,
  VARIANT* Workspace,
  BSTR* outputTableName
);
[C++]

Parameters Prefix [optional] Prefix is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Suffix [optional] Suffix is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. DataType [optional] DataType is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Workspace [optional] Workspace is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. outputTableName [out, retval] outputTableName is a parameter of type BSTR

Product Availability

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

See Also

IGpDispatch Interface