ValidationContext.AddError Method (EdmLocation, EdmErrorCode, String)
Adds an error with the validation context.
Namespace: Microsoft.Data.Edm.Validation
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Sub AddError ( _
location As EdmLocation, _
errorCode As EdmErrorCode, _
errorMessage As String _
)
'Usage
Dim instance As ValidationContext
Dim location As EdmLocation
Dim errorCode As EdmErrorCode
Dim errorMessage As String
instance.AddError(location, errorCode, _
errorMessage)
public void AddError(
EdmLocation location,
EdmErrorCode errorCode,
string errorMessage
)
public:
void AddError(
EdmLocation^ location,
EdmErrorCode errorCode,
String^ errorMessage
)
member AddError :
location:EdmLocation *
errorCode:EdmErrorCode *
errorMessage:string -> unit
public function AddError(
location : EdmLocation,
errorCode : EdmErrorCode,
errorMessage : String
)
Parameters
- location
Type: Microsoft.Data.Edm.EdmLocation
The location of the error.
- errorCode
Type: Microsoft.Data.Edm.Validation.EdmErrorCode
The value representing the error.
- errorMessage
Type: System.String
The message text describing the error.