Extensible Connectivity 2.0 Extension in Visual Basic
-
Friday, January 18, 2013 12:17 AM
Good evening all, long time reader first time poster.
I am receiving the following errors on my base project when creating a Custom Extensible Connectivity 2.0 Extension in visual basic
I create the project in synchronization Service Manager by
-> Select Management Agents Button
->Right Click and select Create Extensions Project, Extensible Connectivity 2.0 Extension
-> Then i select Visual Basic, Visual Studio 2010, Enter a project name, then location and Launch in VS.net IDE.
My base project looks as follows
Imports Microsoft.MetadirectoryServices Namespace FimSync_Ezma Public Class EzmaExtension 'Implements IMAExtensible2CallExport, 'Implements IMAExtensible2CallImport, 'Implements IMAExtensible2FileExport, 'Implements IMAExtensible2FileImport, 'Implements IMAExtensible2GetHierarchy, 'Implements IMAExtensible2GetSchema, 'Implements IMAExtensible2GetCapabilities, 'Implements IMAExtensible2GetParameters, 'Implements IMAExtensible2GetPartitions End Class End Namespace
But when I remove the comment and the comma, I get the following errors.
Error 1 Class 'EzmaExtension' must implement 'Function PutExportEntries(csentries As System.Collections.Generic.IList(Of CSEntryChange)) As PutExportEntriesResults' for interface 'Microsoft.MetadirectoryServices.IMAExtensible2CallExport'. C:\Users\Administrator\Documents\ExtensibleConnectivity2Extension\ExtensibleConnectivity2Extension.vb 7 20 ExtensibleConnectivity2Extension
Error 2 Class 'EzmaExtension' must implement 'ReadOnly Property ExportDefaultPageSize As Integer' for interface 'Microsoft.MetadirectoryServices.IMAExtensible2CallExport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. C:\Users\Administrator\Documents\ExtensibleConnectivity2Extension\ExtensibleConnectivity2Extension.vb 7 20 ExtensibleConnectivity2Extension
Error 3 Class 'EzmaExtension' must implement 'ReadOnly Property ExportMaxPageSize As Integer' for interface 'Microsoft.MetadirectoryServices.IMAExtensible2CallExport'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. C:\Users\Administrator\Documents\ExtensibleConnectivity2Extension\ExtensibleConnectivity2Extension.vb 7 20 ExtensibleConnectivity2Extension
Error 4 Class 'EzmaExtension' must implement 'Sub CloseExportConnection(exportRunStep As CloseExportConnectionRunStep)' for interface 'Microsoft.MetadirectoryServices.IMAExtensible2CallExport'. C:\Users\Administrator\Documents\ExtensibleConnectivity2Extension\ExtensibleConnectivity2Extension.vb 7 20 ExtensibleConnectivity2Extension
Error 5 Class 'EzmaExtension' must implement 'Sub OpenExportConnection(configParameters As System.Collections.ObjectModel.KeyedCollection(Of String, ConfigParameter), types As Schema, exportRunStep As OpenExportConnectionRunStep)' for interface 'Microsoft.MetadirectoryServices.IMAExtensible2CallExport'. C:\Users\Administrator\Documents\ExtensibleConnectivity2Extension\ExtensibleConnectivity2Extension.vb 7 20 ExtensibleConnectivity2Extension
Any help about how i can get this cranking would be excellent, also i find the lack of visual basic tutorials on FIM MA's disappointing.
Thanks,
4Runner
All Replies
-
Friday, January 18, 2013 3:40 AM
Hi Andrew
Here, FIM isn't creating default functions that it should.
Having said that, the lines that you uncommented are the interfaces that your EZMA would implement, with implementing interfaces you HAVE to create all the functions which that interface supports.
Have a look at the following link
http://gallery.technet.microsoft.com/FIM-2010-R2-Extensible-cc98812b
its in C# but it will get you the general idea of which functions you will need to implement and what are their functions.
-
Friday, January 18, 2013 5:58 PMModeratorIIRC if you right click the interface in the IDE, there is an Implement Interface button that will create the relevant stubs for you.
My Book - Active Directory, 4th Edition
My Blog - www.briandesmond.com

