다음을 통해 공유


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 _
)
public CalendarWriter (
    Stream stream,
    string encodingName
)
public:
CalendarWriter (
    Stream^ stream, 
    String^ encodingName
)
public CalendarWriter (
    Stream stream, 
    String encodingName
)
public function CalendarWriter (
    stream : Stream, 
    encodingName : String
)

Parameters

  • stream
    The Stream object into which to write iCalendar data.
  • encodingName
    The name of the encoding to use when writing iCalendar data.

Exceptions

Exception type Condition
ArgumentNullException

The stream parameter or encodingName parameter is null.

ArgumentException

The stream parameter cannot be written to.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)