次の方法で共有


NotificationComputedFieldCollection.Add Method (NotificationComputedField, Int32)

NotificationComputedFieldCollection オブジェクト内の指定された位置に NotificationComputedField オブジェクトを追加します。

名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (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
    コレクション内で NotificationComputedField オブジェクトを追加する位置を示す Int32 値です。

解説

insertAtPosition の位置以上にあるオブジェクトは、リスト内で 1 つずつ上の位置に移動されます。

インスタンスを配置した後にフィールドを追加した場合は、インスタンスに対して Update を実行して変更を適用する必要があります。

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

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

その他の技術情報

通知スキーマの定義
ComputedFields 要素 (ADF)