SettingsUnitHelperThrowIfNotPattern - метод
Throws an exception if the specified value does not match the required regex pattern.
Пространство имён: Tessa.SettingsUnitsСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public static void ThrowIfNotPattern(
[NotNullAttribute] string? value,
Regex regex,
string? paramName = null,
string? message = null
)
Public Shared Sub ThrowIfNotPattern (
<NotNullAttribute> value As String,
regex As Regex,
Optional paramName As String = Nothing,
Optional message As String = Nothing
)
public:
static void ThrowIfNotPattern(
[NotNullAttribute] String^ value,
Regex^ regex,
String^ paramName = nullptr,
String^ message = nullptr
)
static member ThrowIfNotPattern :
[<NotNullAttribute>] value : string *
regex : Regex *
?paramName : string *
?message : string
(* Defaults:
let _paramName = defaultArg paramName null
let _message = defaultArg message null
*)
-> unit
Параметры
- value String
- The string value to validate.
- regex Regex
- The regular expression to match against.
- paramName String (Optional)
- The name of the parameter being validated (optional).
- message String (Optional)
- Custom error message (optional).