다음을 통해 공유


EndType Property

Topic Last Modified: 2006-06-13

Specifies how a recurring pattern ends.

Applies To

IRecurrencePattern Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property EndType As CdoPatternEndType
HRESULT get_EndType(CdoPatternEndType* pVal);HRESULT put_EndType(CdoPatternEndType Val);

Parameters

Remarks

The CdoPatternEndType Enum is used to set this property and is as follows:

Name Value Description

cdoNoEndDate

0

The pattern never ends.

cdoEndByInstances

1

The pattern ends after a specified number of instances.

cdoEndByDate

2

The pattern ends after a specified date and time.

You must first specify the number of instances for the pattern using the IRecurrencePattern.Instances property if you plan to set the EndType property to cdoEndByInstances. If you do not specify the number of instances first, Collaboration Data Objects (CDO) raises an error.

You must first specify the recurrence end date using the IRecurrencePattern.PatternEndDate property if you plan to set the EndType property to cdoEndByDate. If you do not specify this date first, CDO raises an error.