开发者

Multiple WebpartProviders to one single WebpartConsumer

开发者 https://www.devze.com 2023-03-01 20:12 出处:网络
According to the user Rhys in this post Sharepoint multiple connections to a w开发者_如何转开发eb parts you need to configure your providers to point to a specific consumer method. How do i do said co

According to the user Rhys in this post Sharepoint multiple connections to a w开发者_如何转开发eb parts you need to configure your providers to point to a specific consumer method. How do i do said configuration to the providers?


Web part connections are very loosely coupled. The provider part exposes a method, marked with the ConnectionProvider attribute, that indicates it can provide information defined by a specific interface. The consumer part exposes a method, marked with the ConnectionConsumer attribute, that indicates it can consume information defined by a specific interface. When the provider and consumer use the same interface, they can communicate with each other. The communication is managed by the WebPartManager, not the web parts themselves.

This walkthrough should fill in the details and help you get started: http://msdn.microsoft.com/en-us/library/ms469765.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号