Share via


GetFirstInstance Method

GetFirstInstance Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the first instance of a recurring appointment.

Applies To

IAppointment Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Function GetFirstInstance
(
    ByVal Start As Date,     ByVal End As Date
) As IAppointment

[C++]HRESULT GetFirstInstance (     DATE Start,     DATE End,     IAppointment** pVal );

Parameters

  • Start
    The starting date for a range in which to determine the first instance of a recurring appointment.
  • End
    The ending date for a range in which to determine the first instance of a recurring appointment.
  • pVal
    Returned reference to an IAppointment Interface.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The range calculated by GetFirstInstance starts with the date and time of the first instance. It does not accommodate subsequent changes to the start time for that appointment. For example, if you set the start instance in GetFirstInstance to 3/10/2000 10 am, and later modify that appointment to start at 3/10/2000 2 pm, the GetFirstInstance range remains with the first instance at 3/10/2000 10 am.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.