ModelErrorCollection::Add Method

 

Adds an Exception object to the model-error collection.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodAdd(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodAdd(Exception^)

Adds the specified Exception object to the model-error collection.

System_CAPS_pubmethodAdd(String^)

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

Return to top

ModelErrorCollection::Add Method (Exception^)

Adds the specified Exception object to the model-error collection.

public:
void Add(
	Exception^ exception
)

Parameters

exception
Type: System::Exception^

The exception.

Return to top

ModelErrorCollection::Add Method (String^)

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

public:
void Add(
	String^ errorMessage
)

Parameters

errorMessage
Type: System::String^

The error message.

Return to top
Show: