Share via


NotificationComputedFieldCollection.Add Method (NotificationComputedField, Int32)

Adds a NotificationComputedField object to the NotificationComputedFieldCollection object at the specified position.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    notificationComputedField As NotificationComputedField, _
    insertAtPosition As Integer _
)
public void Add (
    NotificationComputedField notificationComputedField,
    int insertAtPosition
)
public:
void Add (
    NotificationComputedField^ notificationComputedField, 
    int insertAtPosition
)
public void Add (
    NotificationComputedField notificationComputedField, 
    int insertAtPosition
)
public function Add (
    notificationComputedField : NotificationComputedField, 
    insertAtPosition : int
)

Parameters

  • insertAtPosition
    An Int32 value that specifies where to add the NotificationComputedField object in the collection.

Remarks

Objects at the insertAtPosition position and higher are moved to the next higher position in the list.

If you add fields after deploying the instance, you must Update the instance to apply the changes.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

NotificationComputedFieldCollection Class
NotificationComputedFieldCollection Members
Microsoft.SqlServer.Management.Nmo Namespace

Other Resources

Defining the Notification Schema
ComputedFields Element (ADF)