Microsoft Identity Integration Server 2003 Developer Reference |
The following example shows you how to create a value that will be used to search for an MVEntry object to join with a CSEntry object. In this example, the objects in the metaverse have a displayName attribute that is made up of the first and last name. The names are separate attributes in the connector space.
Public Sub MapAttributesForJoin(ByVal FlowRuleName As String, _ ByVal csentry As CSEntry, _ ByRef values As ValueCollection) _ Implements IMASynchronization.MapAttributesForJoin Select Case FlowRuleName Case "displayName" ' Create the final value from two other values and add the final ' value to the values collection used to search the metaverse. Dim displayName As String displayName = csentry("givenName").Value + " " + csentry("sn").Value values.Add(displayName) Case Else Throw New EntryPointNotImplementedException End Select End Sub
void IMASynchronization.MapAttributesForJoin (string FlowRuleName, CSEntry csentry, ref ValueCollection values) { switch(FlowRuleName) { case "displayName": // Create the final value from two other values and add the final // value to the values collection used to search the metaverse string displayName = csentry["givenName"].Value + " " + csentry["sn"].Value; values.Add(displayName); break; default: throw new EntryPointNotImplementedException(); } }