GetRelatedPagesByOneHop

GetRelatedPagesByOneHop

Top  Previous  Next

This method returns a PageDataCollection of all the pages that were found during the query. This is the simplest way to query the topic map for information. Example:

PageDataCollection departments = helper.GetRelatedPagesByOneHop(

  this.CurrentPage,                                                     // Current page represents a person

  "http://psi.networkedplanet.com/associations/departmenthasmember",    // Association type

  "http://psi.networkedplanet.com/roletypes/department");               // Find all the pages playing the role of department