Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Can a single webpart act both as consumer and provider

  Asked By: Shana    Date: Oct 31    Category: Sharepoint    Views: 1494

iam new to the sharepoint and i need some
clarification regarding the webpart creation.
In my present situation i need a web part
tht can act as provider as well as consumer.
can anyone pls guide me pls in this regard.

in case of different web parts: provider and

we give provider interface in::
public override void EnsureInterfaces()

similarly we use same method for consumer also,

now how can i use the same method for both consumer
and provider.
i cant define( or override) the same method 2 times
in the same class as its an error( actually i also
tried that)



1 Answer Found

Answer #1    Answered By: Linsey Bauer     Answered On: Oct 31

Creating consumers and providers is slightly more complex then simply
overriding the EnsureInterfaces() method. The SharePoint Technologies
SDK contains an example of registering multiple interfaces.

Didn't find what you were looking for? Find more on Can a single webpart act both as consumer and provider Or get search suggestion and latest updates.