MTAdd Method (MTNVS collection)

             

 

Creates a new MTNV and adds it to the collection.

 

Syntax

object.MTAdd Name, Value

The MTAdd method syntax has these parts:

Part

Description

object

An object expression that evaluates to a MTNVS object.

Name

A string expression which will become the name of the newly added object.

Value

A Variant expression which will become the value of the newly added object.

 

Remarks

Returns a reference to the newly created MTNV object.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseACCESSDENIED

The collection cannot be modified because it is frozen; that is, the collection's MTReadOnly flag is true.

pseDUPLICATENAME

The collection already contains an item with the given name.

Enabling Operational Intelligence