Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    IsValid(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.

    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • IsValid(CultureInfo)
      • IsValid(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX