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 IIsoCodeValidator
Methods
View SourceIsValid(CultureInfo)
Validates that a cultureInfo is a valid culture info in Umbraco.
Declaration
bool IsValid(CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture info to validate. |
Returns
| Type | Description |
|---|---|
| bool | True if the CultureInfo is valid in Umbraco. |
IsValid(string)
Validates that a string is a valid ISO code.
Declaration
bool IsValid(string isoCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | isoCode | The string to validate. |
Returns
| Type | Description |
|---|---|
| bool | True if the string is a valid ISO code. |