コード例 #1
0
        /// <summary>
        /// Retrieve a list of PersonPlacemark objects that are in the designated Arena Area.
        /// Possibly retrieve only a subset of those individuals.
        /// </summary>
        /// <param name="areaid">The ID number of the Arena Area.</param>
        /// <param name="start">The 0-based starting index of the records to retrieve.</param>
        /// <param name="count">The maximum number of records to retrieve. If the returned number is less than this number then no more records are available.</param>
        /// <returns>List of PersonPlacemarks that identify people in range.</returns>
        public List <PersonPlacemark> PersonPlacemarksInArea(int areaid, int start, int count)
        {
            List <PersonPlacemark> people;
            SqlDataReader          rdr;


            if (PersonFieldOperationAllowed(PersonFields.Profile_Name, OperationType.View) == false)
            {
                return(new List <PersonPlacemark>());
            }

            //
            // Execute the reader and process all results.
            //
            rdr    = new PersonData().GetPersonByArea(areaid);
            people = PersonPlacemarksFromReader(rdr, start, count);
            rdr.Close();

            return(people);
        }