Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.49 KB

late-binding-support.md

File metadata and controls

42 lines (28 loc) · 1.49 KB
title description ms.assetid ms.tgt_platform keywords ms.topic ms.date
Late Binding Support
When late binding support is in place, each function call must go through the ADSI IDispatch interface, before it is rerouted to the appropriate extension.
fbdc6234-9381-4d64-bf02-05e393b3e0bd
multiple
extensions ADSI ,late binding support
ADSI ADSI ,example code Visual Basic ,late binding support
binding AD ,late binding support
article
05/31/2018

Late Binding Support

When late binding support is in place, each function call must go through the ADSI IDispatch interface, before it is rerouted to the appropriate extension.

Consider the following code example.

Set x = GetObject("LDAP://CN=JeffSmith, OU=Sales, 
                   DC=Fabrikam,DC=COM")
x.SetPassword("newPassword")
 
 
x.MyNewMethod( "\\srv\public")
x.MyProperty = "Hello World"
 
x.OtherMethod()
x.OtherProperty = 4362
 
Debug.Print x.LastName

There are no explicit calls to the QueryInterface method to get to the extensions. The extensions must reroute their IDispatch calls to the ADSI IDispatch interface. ADSI makes the decision and resolves any conflicts that occur, then it re-routes back to the appropriate extension using an interface called IADsExtension. Therefore, any extension that supports late binding must implement IADsExtension.