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
name
Type: System.StringA string that contains the name of the DateHeader to be created.
dateTime
Type: System.DateTimeA DateTime object that specifyies the universal date and time to use when the DateHeader object is created.
timeZoneOffset
Type: System.TimeSpanA 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.