How does one define IOleServiceProvider in a WPF application?

complete

Member
Joined
Oct 24, 2012
Messages
14
Programming Experience
3-5

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,272
Location
Sydney, Australia
Programming Experience
10+
Here's the relevant MSDN documentation:

SafeWebBrowser.IOleServiceProvider Interface (Microsoft.TeamFoundation.WorkItemTracking.Controls)

As it says there, that interface is declared in the Microsoft.TeamFoundation.WorkItemTracking.Controls.dll assembly. Have you referenced that assembly? If not then you can't import the namespaces or use the types it contains. Also, that documentation shows that that interface is nested within the SafeWebBrowser class, so you would have to either import that class, rather than just its namespace, or else qualify the interface name with the class name.
 
Top Bottom