Compartilhar via


ArmSelfHelpModelFactory.ResponseValidationProperties Método

Definição

Inicializa uma nova instância de ResponseValidationProperties.

public static Azure.ResourceManager.SelfHelp.Models.ResponseValidationProperties ResponseValidationProperties (string regex = default, bool? isRequired = default, string validationErrorMessage = default, long? maxLength = default);
static member ResponseValidationProperties : string * Nullable<bool> * string * Nullable<int64> -> Azure.ResourceManager.SelfHelp.Models.ResponseValidationProperties
Public Shared Function ResponseValidationProperties (Optional regex As String = Nothing, Optional isRequired As Nullable(Of Boolean) = Nothing, Optional validationErrorMessage As String = Nothing, Optional maxLength As Nullable(Of Long) = Nothing) As ResponseValidationProperties

Parâmetros

regex
String

Regex usado para a validação de entrada.

isRequired
Nullable<Boolean>

Padrão True.

validationErrorMessage
String

Mensagem de erro de validação.

maxLength
Nullable<Int64>

Entrada máxima de texto (abra Texto Encerrado).

Retornos

Uma nova ResponseValidationProperties instância para zombar.

Aplica-se a