多个 WebpartProvider 到一个 WebpartConsumer
根据用户 Rhys 在这篇文章中的说法 Sharepoint 到网络的多个连接部分您需要配置您的提供者以指向特定的消费者方法。我如何对提供商进行上述配置?
According to the user Rhys in this post Sharepoint multiple connections to a web parts you need to configure your providers to point to a specific consumer method. How do i do said configuration to the providers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Web 部件连接的耦合非常松散。提供程序部分公开一个方法,用 ConnectionProvider 属性标记,表明它可以提供由特定接口定义的信息。消费者部分暴露了一个方法,用ConnectionConsumer属性标记,表明它可以消费特定接口定义的信息。当提供者和消费者使用相同的接口时,他们可以相互通信。通信由 WebPartManager 管理,而不是 Web 部件本身。
本演练应填写详细信息并帮助您开始:
http://msdn.microsoft.com/en-us/library/ms469765.aspx
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