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

概要

containerAutobind

このスクリプトはコンテナに自動バインド操作を実行します。

戻り値

なし

引数

変数名 変数タイプ 説明
$containerstring使用するコンテナ、または "" で選択項目を使用
$bindingSetstring使用する bindingSet、または "" で既定の bindingSet を自動的に定義
$autobindAllintすべてのパブリッシュ済みの名前を処理(既定ではバインドされていない名前のみが処理)
$forceint以前にバインドされたアトリビューとが一致しない場合、強制的にバインド解除(既定では一致しない名前はスキップ)

MEL 例

	// autobind myContainer using binding set "MyBindings".  

  // Since all option is used, all published names (bound and unbound)

  // will be processed.

  // Since force option is used, any unmatched name will be unbound.

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

	// autobind myContainer using a default binding set

  // Since all option is not set, only unbound names will be processed.

	containerAutobind(myContainer, "", 0, 0);

	// autobind myContainer using the default binding set.

  // All published names will be processed.  

  // Because force option is not used, names not 

  // matched will be left with their current bindings 

  string $bindingSet = containerDefaultBindingSet();
	containerAutobind(myContainer, $bindingSet, 1, 0);