Interface IValidationRule
- Namespace
- Apq.Cfg.Validation
- Assembly
- Apq.Cfg.dll
配置验证规则接口
public interface IValidationRule
Properties
Key
要验证的配置键
string Key { get; }
Property Value
Name
规则名称
string Name { get; }
Property Value
Methods
Validate(string?)
验证配置值
ValidationError? Validate(string? value)
Parameters
valuestring配置值
Returns
- ValidationError
验证错误,如果验证通过返回 null