Share via


ValidationContext.AddError Method

Definition

Overloads

AddError(EdmError)

Register an error with the validation context.

AddError(EdmLocation, EdmErrorCode, String)

Register an error with the validation context.

AddError(EdmError)

Register an error with the validation context.

public void AddError (Microsoft.OData.Edm.Validation.EdmError error);
member this.AddError : Microsoft.OData.Edm.Validation.EdmError -> unit
Public Sub AddError (error As EdmError)

Parameters

error
EdmError

Error to register.

Applies to

AddError(EdmLocation, EdmErrorCode, String)

Register an error with the validation context.

public void AddError (Microsoft.OData.Edm.EdmLocation location, Microsoft.OData.Edm.Validation.EdmErrorCode errorCode, string errorMessage);
member this.AddError : Microsoft.OData.Edm.EdmLocation * Microsoft.OData.Edm.Validation.EdmErrorCode * string -> unit
Public Sub AddError (location As EdmLocation, errorCode As EdmErrorCode, errorMessage As String)

Parameters

location
EdmLocation

Location of the error.

errorCode
EdmErrorCode

Value representing the error.

errorMessage
String

Message text describing the error.

Applies to