StartOfYearTryFromString Method |
Tries to parse a string representation of a StartOfYear in
--MM-DD format, the format used by XML Schema's gMonthDay
type (based on ISO 8601). Returns true if it succeeds.
Namespace: DegreeDays.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public static bool TryFromString(
string startOfYearString,
out StartOfYear result
)
Public Shared Function TryFromString (
startOfYearString As String,
<OutAttribute> ByRef result As StartOfYear
) As Boolean
Parameters
- startOfYearString String
- A string with format --MM-DD, where
MM is a number between 01 and 12 (inclusive) representing the month of the year,
and DD is a number between 01 and the number of days in the month MM
(inclusive), the maximum being 28 for February.
- result StartOfYear
- When this method returns, contains the StartOfYear
represented by startOfYearString if the parsing succeeded, or the
default StartOfYear if it failed.
Return Value
Booleantrue if the parsing succeeded,
false if it failed.
Exceptions See Also