Partager via


ModelErrorCollection.Add Method (String)

Adds the specified error message to the model-error collection.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Sub Add ( _
    errorMessage As String _
)
'Usage
Dim instance As ModelErrorCollection
Dim errorMessage As String

instance.Add(errorMessage)
public void Add(
    string errorMessage
)
public:
void Add(
    String^ errorMessage
)
member Add : 
        errorMessage:string -> unit 
public function Add(
    errorMessage : String
)

Parameters

See Also

Reference

ModelErrorCollection Class

Add Overload

System.Web.Http.ModelBinding Namespace