Converts the specified string representation of a time of day to its TimeOfDay equivalent.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)

Syntax

C#
public static bool TryParse(
	string s,
	out TimeOfDay result
)
Visual Basic (Declaration)
Public Shared Function TryParse ( _
	s As String, _
	<OutAttribute> ByRef result As TimeOfDay _
) As Boolean

Parameters

s
Type: System..::.String
A string containing a time of day to convert.
result
Type: DlhSoft.Windows.Data..::.TimeOfDay %
When this method returns, contains the TimeOfDay value equivalent to the time of day contained in s, if the conversion succeeded, or MinValue if the conversion failed. The conversion fails if the s parameter is a null reference (Nothing in Visual Basic), or does not contain a valid string representation of a time of day. This parameter is passed uninitialized.

Return Value

true if the s parameter was converted successfully; otherwise, false.

See Also