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


IMapServer3.QueryHTMLPopups Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServer3 Interface > IMapServer3.QueryHTMLPopups Method
ArcGIS Developer Help

IMapServer3.QueryHTMLPopups Method

Returns the html as text that can be used in popups.

[Visual Basic .NET]
Public Function QueryHTMLPopups ( _
    ByVal MapName As String, _
    ByVal TableID As Integer, _
    ByVal pRowIDs As ILongArray _
) As IStringArray
[C#]
public IStringArray QueryHTMLPopups (
    string MapName,
    int TableID,
    ILongArray pRowIDs
);
[C++]
HRESULT QueryHTMLPopups(
  BSTR MapName,
  long TableID,
  ILongArray* pRowIDs
);
[C++]
Parameters
MapName [in]

MapName is a parameter of type BSTR TableID [in]
TableID is a parameter of type long pRowIDs [in]
pRowIDs is a parameter of type ILongArray*

Product Availability

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

Remarks

An array of string. Each string represents rich html formatted attributes of a feature.

You should check MapLayerInfo.HTMLPopupType before using this function.

The html content in results are returned in the same order the OIDs are passed in. If you want to query feature based on location and get result back as rich html, you may use Identify function with esriIdentifyVisibleWithHTMLPopup or esriIdentifyTopOneWithHTMLPopup.

This function does not allow a client to format the attribute, instead it returns html content the way an author formatted the result in the source map.

See Also

IMapServer3 Interface