Go to: Synopsis. Return value. MEL examples.

Synopsis

containerAutobind

This script performs autobind operations on a container.

Return value

None

Arguments

Variable Name Variable Type Description
$containerstring, the container to use, or "" to use selected
$bindingSetstring, the bindingSet to use, or "" have default bindingSet determined automatically
$autobindAllint, process all published names (by default only unbound names are processed)
$forceint, forcibly unbind previously bound attributes if they are not matched. By default unmatched names will be skipped.

MEL examples

	// 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);