InitialContext
An application uses an InitialContext object to create objects from object definitions that are retrieved from a repository of administered objects.
- Inheritance hierarchy:
- None
Parent topic: .NET interfaces
Get the environment.
Create an InitialContext
object.
The information required to establish a connection to the repository
of administered objects is provided to the constructor in an environment Hashtable.
Add a new property
to the environment.
Close this context.
Create an object from
an object definition that is retrieved from the repository of administered
objects.
Remove a property from
the environment.
.NET properties
.NET property
Description
Environment
Get the environment.
Environment - Get the environment
Hashtable Environment
{
get;
}
Constructors
Constructor
Description
InitialContext
Create an InitialContext
object.
InitialContext - Create Initial Context
InitialContext(Hashtable env);
Methods
Method
Description
AddToEnvironment
Add a new property
to the environment.
Close
Close this context.
Lookup
Create an object from
an object definition that is retrieved from the repository of administered
objects.
RemoveFromEnvironment
Remove a property from
the environment.
AddToEnvironment - Add a New Property to the Environment
Object AddToEnvironment(String propName, Object propVal);
Close - Close this context
void Close()
Lookup - Look Up Object in Initial Context
Object Lookup(String name);
RemoveFromEnvironment - Remove a Property from the Environment
Object RemoveFromEnvironment(String propName);