开发者

namespace to extend sharepoint built in webparts programatically in visual studio 2010

开发者 https://www.devze.com 2023-03-20 06:46 出处:网络
I need to extend the features of image viewer webpart in my visual studio 2010 project. W开发者_Go百科hich namespace i have to use to get it?You can find the class by looking in the .dwp and .webpart

I need to extend the features of image viewer webpart in my visual studio 2010 project. W开发者_Go百科hich namespace i have to use to get it?


You can find the class by looking in the .dwp and .webpart files that are in your Site's Web Part Gallery. That's how SharePoint knows which class and assembly to load. In particular, the image web part uses the class Microsoft.SharePoint.WebPartPages.ImageWebPart http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.imagewebpart.aspx#Y200

What is unfortunate for you is that class is sealed and thus you can't extend it.

0

精彩评论

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