DateHeader constructor (String, DateTime)
The DateHeader constructor creates a new DateHeader object that has the given name and dateTime.
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 _
)
'Usage
Dim name As String
Dim dateTime As DateTime
Dim instance As New DateHeader(name, dateTime)
public DateHeader(
string name,
DateTime dateTime
)
Parameters
name
Type: System.StringA string that contains the name of the DateHeader to be created.
dateTime
Type: System.DateTimeA DateTime object that specifies the Coordinated Universal Time (UTC) or local date and time to use when the new DateHeader object is created.
Remarks
When dateTime is a local time, the TimeZoneOffset property is initialized to zero. When dateTime is a universal time, the TimeZoneOffset property is initialized to the current local time offset.