在Sharepoint中,是否可能创建连接的Web部件,使其与提供程序有多个连接?
例如,Web Part A和B是提供程序,而Web Part C是使用者。
A是使用者C的提供程序,B也是使用者C的提供程序。
谢谢。
Rhys,我尝试过了但似乎不起作用。使用者Web部件仅能与最后设置的提供程序一起使用。
[ConnectionConsumer("KeywordsConsumer", "KeywordsID", AllowsMultipleConnections=true)]
public void ProviderReceiver1(ICommunicationChannel p)
{
provider = p;
}
[ConnectionConsumer("NewEmployeeConsumer", "ID", AllowsMultipleConnections=true)]
public void ProviderReceiver2(ICommunicationChannel p)
{
provider = p;
}