Microsoft Identity Integration Server 2003 Developer Reference |
This topic describes how to create a connected data source extension for the extensible management agent using Visual Basic .NET and Visual Studio .NET 2003. To create a password extension project, you will need to copy the Microsoft.MetadirectoryServices assembly to your development system and manually create a reference to the assembly. You can find the assembly in the bin\assemblies folder of the Microsoft Identity Integration Server program folder. The default folder for Microsoft Identity Integration Server is C:\Program Files\Microsoft Identity Integration Server\bin\assemblies\.
To create a connected data source extension, you must complete the following steps
To create a new Visual Basic .NET class library project using Visual Studio .NET 2003
The Microsoft Visual Studio .NET 2003 development environment appears.
Your project name now appears in Solution Explorer.
Note We recommend that you store the project on your local computer rather than at a network location.
To add a reference to the Microsoft.MetadirectoryServices assembly
Verify that Microsoft.MetadirectoryServices.dll appears in the Selected Components list of the Add Reference dialog box.
In Solution Explorer, Microsoft.MetadirectoryServices now appears as one of the references.
You will need to implement an import and export interface in your extension. You can implement the IMAExtensibleFileImport interface as your import interface. For the export interface, implement either the IMAExtensibleCallExport interface for a call-based data source or the IMAExtensibleFileExport interface for a file-based data source.
To implement the interfaces
Implements
Microsoft.MetadirectoryServices.IMAExtensibleFileImport
to
implement the IMAExtensibleFileImport interface. When you
press Enter, the following code appears:
Public Sub GenerateImportFile(ByVal fileName As String, ByVal connectTo As String, ByVal user As String, ByVal password As String, ByVal configParameters As Microsoft.MetadirectoryServices.ConfigParameterCollection, ByVal fFullImport As Boolean, ByVal types As Microsoft.MetadirectoryServices.TypeDescriptionCollection, ByRef customData As String) Implements Microsoft.MetadirectoryServices.IMAExtensibleFileImport.GenerateImportFile End Sub
Implements
Microsoft.MetadirectoryServices.IMAExtensibleCallExport
to
implement the IMAExtensibleCallExport interface to export
data to a call-based data source or Implements
Microsoft.MetadirectoryServices.IMAExtensibleFileExport
to
implement the IMAExtensibleFileExport interface.
If you are implementing the IMAExtensibleCallExport interface, the following code appears:
Public Sub BeginExport(ByVal connectTo As String, ByVal user As String, ByVal password As String, ByVal configParameters As Microsoft.MetadirectoryServices.ConfigParameterCollection) Implements Microsoft.MetadirectoryServices.IMAExtensibleCallExport.BeginExport End Sub Public Sub EndExport() Implements Microsoft.MetadirectoryServices.IMAExtensibleCallExport.EndExport End Sub Public Sub ExportEntry(ByVal modificationType As Microsoft.MetadirectoryServices.ModificationType, ByVal changedAttributes() As String, ByVal csentry As Microsoft.MetadirectoryServices.CSEntry) Implements Microsoft.MetadirectoryServices.IMAExtensibleCallExport.ExportEntry End Sub
If you are implementing the IMAExtensibleCallExport interface to export data to a call-based data source, then change the code as appropriate.
To build the class library
If you see the following message, the extension was successfully built:
------ Build started: Project: Connected Data Source Extension, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... Building satellite assemblies... ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped
The connected data source extension file, which has a .dll extension, is in the bin\Debug folder of your project folder.
Before using the extension, install the file in the extensions folder. The default folder for extensions is C:\Program Files\Microsoft Identity Integration Server\Extensions.
This procedure is optional. Alternatively, you can set Visual Studio .NET 2003 to install the connected data source extension automatically in the extensions folder as part of the build process.
To install the connected data source extension in the extensions folder
There are two folders in the Property Pages dialog box: Common Properties and Configuration Properties.
The default folder for extensions is C:\Program Files\Microsoft Identity Integration Server\Extensions.
Example: Connected Data Source Extension for Call-Based Data Sources, Example: Connected Data Source Extension for File-Based Data Sources