[]
Adds a new user-defined custom function to the model for use in formulas.
public void AddFunction(Function function)
Public Sub AddFunction([function] As [Function])
| Type | Name | Description |
|---|---|---|
| Function | function | Specifies the user-defined Function object to add |
User-defined Function class must be marked with the Serializable attribute or an exception occurs if the data model is saved to view state, a file, or otherwise serialized.
| Type | Condition |
|---|---|
| ArgumentNullException | No function is specified; function is a null reference (Nothing in Visual Basic) |