Partilhar via


Construtor GeneratorUserException (String, Severity)

Inicializa uma nova instância de GeneratorUserException classe usando o erro fornecido mensagem e a gravidade configuração.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (em Microsoft.Data.Schema.Tools.dll)

Sintaxe

'Declaração
Public Sub New ( _
    message As String, _
    severity As Severity _
)
public GeneratorUserException(
    string message,
    Severity severity
)
public:
GeneratorUserException(
    String^ message, 
    Severity severity
)
new : 
        message:string * 
        severity:Severity -> GeneratorUserException
public function GeneratorUserException(
    message : String, 
    severity : Severity
)

Parâmetros

Comentários

As possíveis gravidades são Error(), Warning(), e Information().

Por padrão, este construtor define o ErrorType() propriedade para Unknown().

Segurança do .NET Framework

Consulte também

Referência

GeneratorUserException Classe

Sobrecargas GeneratorUserException

Namespace Microsoft.Data.Schema.Tools.DataGenerator

Severity

ErrorType()

ErrorType