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


ILayerDescription2.SourceID Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

ILayerDescription2.SourceID Property

The id of the source to use when drawing the layer.

[Visual Basic .NET]
Public Property SourceID As String
[C#]
public string SourceID {get; set;}
[C++]
HRESULT get_SourceID(
  BSTR* srcID
);
[C++]
HRESULT put_SourceID(
  BSTR srcID
);
[C++]

Parameters srcID [out, retval] srcID is a parameter of type BSTR srcID [in] srcID is a parameter of type BSTR

Product Availability

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

Remarks

SourceID is used for map service interaction with the GPServer. It is a unique job id assigned to a geoprocessing service each time it runs on the server. This property can be used to find out which geoprocessing job has created this layer.

It is important to note that LayerID, SourceID and the index of layers (see MapLayerInfos) in map document are not the same.

See Also

ILayerDescription2 Interface