Share

ModelStates.Add Method

Parent Object: ModelStates

Description

Method that creates a new ModelState. The newly created ModelState is returned.

Syntax

ModelStates.Add( [Name] As String ) As ModelState

Parameters

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.

Version

Introduced in version 2022

Was this information helpful?