共用方式為


NotificationComputedFieldCollection.Add Method (NotificationComputedField, Int32)

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

命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
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
)

參數

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

備註

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.

執行緒安全性

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

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

其他資源

定義通知結構描述
ComputedFields Element (ADF)