Share via


DateHeader constructor (String, DateTime, TimeSpan)

The DateHeader constructor creates a new DateHeader object that has the given name, dateTime, and timeZoneOffset.

Namespace:  Microsoft.Exchange.Data.Mime
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    dateTime As DateTime, _
    timeZoneOffset As TimeSpan _
)
'Usage
Dim name As String
Dim dateTime As DateTime
Dim timeZoneOffset As TimeSpan

Dim instance As New DateHeader(name, dateTime, _
    timeZoneOffset)
public DateHeader(
    string name,
    DateTime dateTime,
    TimeSpan timeZoneOffset
)

Parameters

  • dateTime
    Type: System.DateTime

    A DateTime object that specifyies the universal date and time to use when the DateHeader object is created.

  • timeZoneOffset
    Type: System.TimeSpan

    A TimeSpan object that specifies the offset that the new DateHeader object uses to calculate the local time.

Remarks

When dateTime is a local time, the UtcDateTime property is adjusted based on the current local time offset.

See also

Reference

DateHeader class

DateHeader members

DateHeader overload

Microsoft.Exchange.Data.Mime namespace