Help > Web Development > Object Reference > Object Reference > ISYSDocument > KeyEntities Method
<a name="kanchor330"></a>ISYSDocument:KeyEntities Method
Returns the key entities for the given entity type.

Syntax
[VBScript]
function ISYSDocument.KeyEntities(_
  long Count, _ 
  string Type_ 
) as ISYSEntityList
[C#]
IISYSEntityList  ISYSDocument.KeyEntities(
  long Count, 
  string Type
);
[ColdFusion/Java]
IISYSEntityList  IISYSDocument.KeyEntities(
  long Count, 
  java.lang.String Type
) throws ComException;
Parameters
CountThe number of entities to return
TypeThe type of entity that should be returned.
People
Organizations
Emails
Locations
WebSites

Examples
[VBScript]
<% Set Document = Results(I) %> Key People: <% For Each Entity in Document.KeyEntities(5, "People") %> <%= Entity.DisplayName %> <% Next %>
See Also