ジャンプ先: 概要. 戻り値. MEL 例.

概要

containerCreateBindingSet

このスクリプトは、コンテナに接続されたテンプレートにバインド セットを作成または更新します。コンテナは、バインド セットのマッピングを生成するためのリファレンスになります。

戻り値

なし

引数

変数名 変数タイプ 説明
$containerstring使用するコンテナ、または "" で選択項目を使用
$bindingSetstring使用する bindingSet、または "" で既定の bindingSet の名前を自動的に定義
$updateModeinttrue の場合、バインド セットが存在し、更新されていることを示す
$forceUpdateinttrue の場合、更新がバインド セットの既存のエントリを置き換えることを示す(false の場合、既存のバインド セットのエントリは置き換えられない)

MEL 例

	// Create new binding set "MyBindings".  

	containerCreateBindingSet(myContainer, "MyBindings", 0, 0);

	// Update an existing binding set.  

  // Since force option is not used, existing bindings will not be replaced,

  // only new entries will be added.

	containerCreateBindingSet(myContainer, "MyBindings", 1, 0);

	// Update an existing binding set.  

  // Since force option is used, existing bindings will be refreshed with

  // the current bindings of the reference container. 

	containerCreateBindingSet(myContainer, "MyBindings", 1, 1);

	// Create a new binding set. Since the binding set name is not

  // specified, the new binding set will use a default binding set name.

	containerCreateBindingSet(myContainer, "", 0, 0);

	// Update the default binding set based on the reference container.

  // Since force option is used, all entries will be refreshed.

	containerCreateBindingSet(myContainer, "", 1, 1);