Share via


ValidationState.AddWarning Method

Definition

Overloads

AddWarning(Exception, String)

Adds a new warning to the warnings list, the warning message is set to the exception message.

AddWarning(String, String)

Adds a new warning to the warnings list

AddWarning(String, Exception, String)

Adds a new warning to the warnings list

AddWarning(Exception, String)

Adds a new warning to the warnings list, the warning message is set to the exception message.

public void AddWarning (Exception error, string bindingKey);
member this.AddWarning : Exception * string -> unit
Public Sub AddWarning (error As Exception, bindingKey As String)

Parameters

error
Exception

The source exception for the warning

bindingKey
String

The property name which caused the warning

Applies to

AddWarning(String, String)

Adds a new warning to the warnings list

public void AddWarning (string message, string bindingKey);
member this.AddWarning : string * string -> unit
Public Sub AddWarning (message As String, bindingKey As String)

Parameters

message
String

The warning message

bindingKey
String

The property name which caused the warning

Applies to

AddWarning(String, Exception, String)

Adds a new warning to the warnings list

public void AddWarning (string message, Exception error, string bindingKey);
member this.AddWarning : string * Exception * string -> unit
Public Sub AddWarning (message As String, error As Exception, bindingKey As String)

Parameters

message
String

The warning message

error
Exception

The source exception for the warning

bindingKey
String

The property name which caused the warning

Applies to