Collapse All Expand All

.NET Framework Class Library
ILookupContext Interface See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Add setting to the lookup context by passing a property/value pair

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    Object AddSettings(
    	string propName,
    	Object propValue
    )

    Function AddSettings ( _
    	propName As String, _
    	propValue As Object _
    ) As Object

    Object^ AddSettings(
    	String^ propName,
    	Object^ propValue
    )

#### Parameters

propName
  Type: System..::.String
  The name of the property to be set. For property names, see the LookupContext Fields.

propValue
  Type: System..::.Object
  The value to set for this property.

# Remarks

Setting added to the lookup context are mainly LDAP or TIBCO EMS Naming Server related parameters used for looking up objects stored in an LDAP server or TIBCO EMS Server. Examples of setting names include LDAP_SERVER_URL or LDAP_BASE_DN.

Examples of setting names include LDAP_SERVER_URL or LDAP_BASE_DN.

To add settings directly:

# Examples

| Copy Code
--- | ---
                    Hashtable table = new Hashtable();
                     LookupContextFactory contextFactory = new LookupContextFactory();
                     ILookupContext searcher = contextFactory.CreateContext("ldap", table);
                    searcher.AddSettings(LdapLookupConsts.LDAP_SERVER_URL, "adc1.na.tibco.com:10389");

# See Also

ILookupContext Interface
AddSettings Overload
TIBCO.EMS Namespace