Freigeben über


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 _
)
public DateHeader (
    string name,
    DateTime dateTime,
    TimeSpan timeZoneOffset
)
public:
DateHeader (
    String^ name, 
    DateTime dateTime, 
    TimeSpan timeZoneOffset
)
public DateHeader (
    String name, 
    DateTime dateTime, 
    TimeSpan timeZoneOffset
)
public function DateHeader (
    name : String, 
    dateTime : DateTime, 
    timeZoneOffset : TimeSpan
)

Parameters

  • name
    A string that contains the name of the DateHeader to be created.
  • dateTime
    A DateTime object that specifyies the universal date and time to use when the DateHeader object is created.
  • timeZoneOffset
    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.

Platforms

Development Platforms

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

Target Platforms

Windows Server 2003