PocketPlanner Programmer's Guide

Appointment.Attendees Property

See Also

Gets the attendees of this appointment.

Namespace: MindFusion.Scheduling
Assembly: PocketPlanner

 Syntax

C#

public ContactCollection Attendees { get; }

Visual Basic

Public ReadOnly Property Attendees As ContactCollection

 Property Value

An instance of the ContactCollection class specifying the appointment's attendees.

 Remarks

This property is equivalent to Contacts.

 Example

The following example creates a new contact and associates it with an existing appointment. The example assumes that app references an existing appointment. The last call is equivalent to app.Contacts.Add(c), since Attendees and Contacts both return a reference to the same collection.

C#

// Create the contact
Contact c = new Contact();
c.FirstName = "John";
c.LastName = "Silver";

// Associate the contact with the appointment
app.Attendees.Add(c);

Visual Basic

' Create the contact
Dim c As New Contact()
c.FirstName = "John"
c.LastName = "Silver"

' Associate the contact with the appointment
app.Attendees.Add(c)

 See Also