Share via


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

  • dateTime
    Type: System.DateTime

    A 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.

See also

Reference

DateHeader class

DateHeader members

DateHeader overload

Microsoft.Exchange.Data.Mime namespace