Share via


ExDateTime.TryParseExact method (, String, String[], IFormatProvider, DateTimeStyles, ExDateTime)

Namespace:  Microsoft.Exchange.ExchangeSystem
Assembly:  Microsoft.Exchange.Net (in Microsoft.Exchange.Net.dll)

Syntax

'Declaration
Public Shared Function TryParseExact ( _
    exTimeZone As ExTimeZone, _
    s As String, _
    formats As String(), _
    provider As IFormatProvider, _
    style As DateTimeStyles, _
    <OutAttribute> ByRef result As ExDateTime _
) As Boolean
'Usage
Dim exTimeZone As ExTimeZone
Dim s As String
Dim formats As String()
Dim provider As IFormatProvider
Dim style As DateTimeStyles
Dim result As ExDateTime
Dim returnValue As Boolean

returnValue = ExDateTime.TryParseExact(exTimeZone, _
    s, formats, provider, style, result)
public static bool TryParseExact(
    ExTimeZone exTimeZone,
    string s,
    string[] formats,
    IFormatProvider provider,
    DateTimeStyles style,
    out ExDateTime result
)

Parameters

  • exTimeZone
    Type: ExTimeZone
  • formats
    Type: []

Return value

Type: System.Boolean

See also

Reference

ExDateTime structure

ExDateTime members

TryParseExact overload

Microsoft.Exchange.ExchangeSystem namespace