I'm trying to display the status for my merge synchronisation. the code that
does the job are as following:
Dim subscription As MergePullSubscription
Dim agent As MergeSynchronizationAgent
agent=subscription.SynchronizationAgent
agent.Status += New AgentCore.StatusEventHandler(AddressOf StatusHandler)
but it gives me the error of "Public event Status cannot be called directly.
Use RaiseEvent to raise the event".
I've looked some sample code, the syntax is same as what i've done. The
namespaces i've used are Microsoft.SqlServer.Management.Common and
Microsoft.SqlServer.Replication. Have I missed anything?
Thanks in advance for any help!
Carol
Archived from group: microsoft>public>vb>syntax