CalendarWriter constructor (Stream, String)
The CalendarWriter constructor creates a new CalendarWriter object that writes to the stream that is passed in the stream parameter and uses the encoding that is specified by the encodingName parameter.
Namespace: Microsoft.Exchange.Data.ContentTypes.iCalendar
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Sub New ( _
stream As Stream, _
encodingName As String _
)
'Usage
Dim stream As Stream
Dim encodingName As String
Dim instance As New CalendarWriter(stream, _
encodingName)
public CalendarWriter(
Stream stream,
string encodingName
)
Parameters
stream
Type: System.IO.StreamThe Stream object into which to write iCalendar data.
encodingName
Type: System.StringThe name of the encoding to use when writing iCalendar data.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The stream parameter or encodingName parameter is null. |
ArgumentException | The stream parameter cannot be written to. |