CalendarWriter.WriteComponent Method
The WriteComponent method writes a component from a CalendarReader object.
Namespace: Microsoft.Exchange.Data.ContentTypes.iCalendar
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Sub WriteComponent ( _
reader As CalendarReader _
)
'Usage
Dim instance As CalendarWriter
Dim reader As CalendarReader
instance.WriteComponent(reader)
public void WriteComponent(
CalendarReader reader
)
Parameters
- reader
Type: Microsoft.Exchange.Data.ContentTypes.iCalendar.CalendarReader
A CalendarReader object that is positioned at the start of the component to be written by this CalendarWriter object.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The reader parameter that was passed is positioned on an iCalendar component that is not allowed within the current component. |