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


IMapServerDataAccess.GetDisplayDataSource Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServerDataAccess.GetDisplayDataSource Method

Get Display Data Source

[Visual Basic .NET]
Public Function GetDisplayDataSource ( _
    ByVal MapName As String, _
    ByVal LayerOrTableID As Integer _
) As Object
[C#]
public object GetDisplayDataSource (
    string MapName,
    int LayerOrTableID
);
[C++]
HRESULT GetDisplayDataSource(
  BSTR MapName,
  long LayerOrTableID,
  LPUNKNOWN* ppDisplayTable
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR LayerOrTableID [in] LayerOrTableID is a parameter of type long ppDisplayTable [out, retval] ppDisplayTable is a parameter of type LPUNKNOWN

Product Availability

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

Remarks

This function allows fine-grained object access to a FeatureLayer, a RasterLayer or a StandaloneTable by returning IFeatureClass, IRaster or ITable respectively, or IRelQueryTable when it is joined. In addition any field visibility or field alias set to the layer in the source map document will be ignored as it returns the underlying data source.

The main difference between GetDisplayDataSource and GetDataSouce functions is that the former one honors joins and returns IRelQueryTable when join exists. This IRelQueryTable interface gives you access to the source or destination table, or the relationship class. When the layer or standalone table is not participating in any join, the behavior of GetDisplayDataSource and GetDataSouce functions are identical.

See Also

IMapServerDataAccess Interface