Table of Contents

Interface IValidationRule

Namespace
Apq.Cfg.Validation
Assembly
Apq.Cfg.dll

配置验证规则接口

public interface IValidationRule

Properties

Key

要验证的配置键

string Key { get; }

Property Value

string

Name

规则名称

string Name { get; }

Property Value

string

Methods

Validate(string?)

验证配置值

ValidationError? Validate(string? value)

Parameters

value string

配置值

Returns

ValidationError

验证错误,如果验证通过返回 null