Use this method to code your relationship AU task. This can contain code to perform any task that you want to assign to a relationship event.
The following code sample demonstrates how the IMMRelationshipAUStrategy::Execute method may be implemented.
Visual Basic |
Copy Code |
Private Sub IMMRelationshipAUStrategy_Execute (ByVal pRelationship As IRelationship, ByVal eAUMode As mmAutoUpdaterMode, ByVal eEvent As mmEditEvent)
If pRelationship Is Nothing Then Exit Sub
If eAUMode = mmAUMNoEvents Or eAUMode = mmAUMNotSet Then Exit Sub
Dim pDS As IDataset
Set pDS = pRelationship
MsgBox "Relationship AU strategy operating on " _
& pDS.Name & " relationship class",, "Sample Relationship AU"
End Sub |
|
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2