Object interface

Description

Type library name

JaguarTypeLibrary

DLL name

jagproxy.dll

A generic proxy object that must be narrowed to another interface.

Methods

See also

SessionManager.Session, Orb.resolve_initial_references




Object.Narrow_

Description

Narrows the object to an instance of a named IDL interface.

Syntax

Object.Narrow_(idlName as String) as JaguarTypeLibrary.Object

Parameters

idlName

The name of the IDL interface to be narrowed to, in the form "module/interface", where module is the IDL module name and interface is the IDL interface name.

Returns

An instance of the requested interface, which should be assigned to a variable declared as the equivalent ActiveX interface. An error is raised if the Object instance cannot support the requested interface.

Examples

Example 1

This example calls Orb.resolve_initial_references to obtain a proxy for the SSL service provider, then calls Object.Narrow_ to narrow to the CtsSecurity::SSLServiceProvider interface:

Dim orbRef As JaguarTypeLibrary.ORB
Dim ssp As CtsSecurity.SSLServiceProvider
Dim CORBAObj As Object 

' Initialize the ORB
Set orbRef = New JaguarTypeLibrary.ORB
orbRef.Init ("")

' Get a proxy for the SSLServiceProvider
Set CORBAObj = _
    orbRef.resolve_initial_references("SSLServiceProvider")
Set ssp = CORBAObj.Narrow_("CtsSecurity/SSLServiceProvider")