ModelStates.Add Method
Parent Object: ModelStatesDescription
Method that creates a new ModelState. The newly created ModelState is returned.
Syntax
ModelStates.Add( [Name] As String ) As ModelStateParameters
Name | Type | Description |
Name | String | Optional input String that specifies the name of the new ModelState. If not specified a default name will be used. This is an optional argument whose default value is "". |
Samples
Name | Description |
Create a model state | This sample demonstrates creation of a model state in an assembly. |