Interface IIsoCodeValidator
A validator for validating if an ISO code string can be is valid.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IIsoCodeValidatorMethods
View SourceIsValid(CultureInfo)
Validates that a cultureInfo is a valid culture info in Umbraco.
Declaration
bool IsValid(CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Globalization.CultureInfo | culture | The culture info to validate. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the CultureInfo is valid in Umbraco. | 
IsValid(String)
Validates that a string is a valid ISO code.
Declaration
virtual bool IsValid(string isoCode)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | isoCode | The string to validate. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the string is a valid ISO code. |