Is Well Formed(String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public: static bool IsWellFormed(Platform::String ^ languageTag);
static bool IsWellFormed(winrt::hstring const& languageTag);
public static bool IsWellFormed(string languageTag);
Public Shared Function IsWellFormed (languageTag As String) As Boolean
True if the language tag is well-formed as defined by BCP-47, except when the language tag can never be valid according to BCP-47. Otherwise it returns false. If this method returns true, an application can safely construct a language by using this tag. If it returns false, attempting to construct a language for the given tag will throw an exception.