Jaa


TimeOfDay.TryParse Method

Definition

Overloads

TryParse(String, TimeOfDay)

Try converts a specified string representation of a timeofday to TimeOfDay with CurrentCulture.

TryParse(String, IFormatProvider, TimeOfDay)

Try converts a specified string representation of a timeofday to TimeOfDay.

TryParse(String, TimeOfDay)

Try converts a specified string representation of a timeofday to TimeOfDay with CurrentCulture.

public static bool TryParse (string text, out Microsoft.OData.Edm.TimeOfDay result);
static member TryParse : string * TimeOfDay -> bool
Public Shared Function TryParse (text As String, ByRef result As TimeOfDay) As Boolean

Parameters

text
String

A string that represent a timeofday to convert.

result
TimeOfDay

A TimeOfDay object equivalent to the date input, if the conversion succeeded or MinValue, if the conversion failed.

Returns

True if the input parameter is successfully converted; otherwise, false.

Applies to

TryParse(String, IFormatProvider, TimeOfDay)

Try converts a specified string representation of a timeofday to TimeOfDay.

public static bool TryParse (string text, IFormatProvider provider, out Microsoft.OData.Edm.TimeOfDay result);
static member TryParse : string * IFormatProvider * TimeOfDay -> bool
Public Shared Function TryParse (text As String, provider As IFormatProvider, ByRef result As TimeOfDay) As Boolean

Parameters

text
String

A string that represent a timeofday to convert.

provider
IFormatProvider

>An object that supplies culture-specific formatting information about text.

result
TimeOfDay

A TimeOfDay object equivalent to the date input, if the conversion succeeded or MinValue, if the conversion failed.

Returns

True if the input parameter is successfully converted; otherwise, false.

Applies to