Overview | Creates a binding in a naming context. |
Original interface | CosNaming::NamingContext Interface |
Exceptions | CORBA
standard exceptions and the following user exceptions:
|
Intended Usage
This operation is intended to be used by client applications. It is not typically overridden.
This operation creates a binding of a name to an object in a naming context. Binding a name to an object in a naming context creates a name-object association relative to the target naming context. Once an object is bound, it can be found through the resolve operation. Naming contexts that are bound using bind do not participate in name resolution when compound names are resolved - bind_context should be used to bind naming context objects.
This operation runs resolve to traverse a compound name. An object can be bound to multiple names in a context or across multiple contexts. Within a context, names of an object must be unique. That is, only one object can be bound to a particular name in a naming context.
Syntax
void bind( in CosNaming::Name name, in Object obj);
Input parameters
Return values
None.
Example
See the CosNaming Usage example for BindingIterator::destroy.