Datasheet

Method Return Type Description
GetDiaryEntriesByDateAsCollection(ByVal DiaryEntryCollection Creates a new
DiaryId As Integer, ByVal FromDate DiaryEntry
As Date, ByVal ToDate As Date) Collection
object and populates
it with
DiaryEntry
objects whose
EntryDate is
between the
FromDate and
ToDate arguments.
GetDiaryEntriesRecentlyChanged(ByVal SqlDataReader Returns a
DiaryId As Integer) SqlDataReader
containing a DataSet
of diary entries
recently created.
In addition to the constructors and methods, the
DiaryEntry class contains the following properties:
Property Type Description
EntryTitle String Title for the day’s diary entry.
EntryText String Text of the day’s diary entry.
EntryDate Date Date the entry was posted.
The other class dealing with diary entries is the
DiaryEntryCollection class, which is explained next.
The DiaryEntryCollection Class
The DiaryEntryCollection class inherits from the System.Collections.CollectionBase class. Its
purpose is simply to store a collection of
DiaryEntry objects.
This class contains only one property, described in the following table:
Property Type Description
Item(ByVal Index As Integer Returns the DiaryEntry object stored
Integer) at the specified position in index in the
collection.
13
The Online Diary and Organizer
04_749516 ch01.qxp 2/10/06 9:11 PM Page 13