Skip to content

MessageId.TryParse(string?, IFormatProvider?, MessageId)

TryParse(string?, IFormatProvider?, MessageId)

static
View source
public static bool TryParse(string? s, IFormatProvider? provider, out MessageId result)
Tries to parse a string into a value.

Parameters

sstring?
The string to parse.
providerIFormatProvider?
An object that provides culture-specific formatting information about s.
resultMessageId
When this method returns, contains the result of successfully parsing s or an undefined value on failure.

Returns

true if s was successfully parsed; otherwise, false.