際際滷

際際滷Share a Scribd company logo
SharePoint
Microsoft




            Vitaly Baum
            Software Developer
            Conteq
丐亠仂亳 弍亠亰 仗舒从亳从亳 仄亠于舒
          弌于仂仂于 仍亠从舒仆亟
          舒亳仍亠于亳
          (1730-1800)
SharePoint: Object Model & Web Parts
弌从舒 亟仂从仍舒亟舒
 仂舒仆仂于从舒 亰舒亟舒亳
 舒仄仂亠仆亳亠 仂仆仂于仆 仍亠仄亠仆仂于
 舒亰舒弍仂从舒 于亠弍-舒亳
SharePoint: Object Model & Web Parts
仂舒仆仂于从舒 亰舒亟舒亳
 弌仂亰亟舒 于亠弍-舒 亟仍 仂仂弍舒亢亠仆亳
 仆亠从仂仂 亟舒仆仆
 亠弍-舒亠亶 于 SharePoint 亟仂舒仂仆仂, 仆仂 亟仍
 仗亠亳亳仆 弍亳亰仆亠-亰舒亟舒 仆亠仂弍仂亟亳仄仂
 仂亰亟舒于舒 于仂亳
SharePoint: Object Model & Web Parts
SharePoint: Object Model & Web Parts
仂亠从亳仂于舒仆亳亠 于亠弍-舒亳

                 亠弍-舒


                亳仍仂亢亠仆亳亠


               仆舒从舒
仂亠从亳仂于舒仆亳亠 于亠弍-舒亳

                 亠弍-舒


                亳仍仂亢亠仆亳亠


               仆舒从舒
SharePoint: Object Model & Web Parts
亠舒亳 亳亰亳亠从亳 仂弍亠从仂于
亠舒亳 仂亟亠亢亳仄仂亞仂
               亠舒亳亠从舒
               从舒
               舒从 仆舒弍仂 舒仆亳
亠舒亳 仂亟亠亢亳仄仂亞仂
               亠弍-仗亳仍仂亢亠仆亳亠
               舒弍仂 弍舒亰 亟舒仆仆
               仂亟亠亢亳仄仂亞仂
               丐仂从舒 于仂亟舒 亟仍 IIS
               仍 仗仂亟 仗亳仍仂亢亠仆亳亠
               仂亠 仗仂亟 仗仍
               仂亳亰于仂亟亳亠仍仆仂 亳
               亟仂仗仆仂
               仂仍亳亳从亳 弍亠亰仂仗舒仆仂亳
               亳 亟仂仗舒
               舒仂亶从舒 仍亢弍 IIS
SharePoint: Object Model & Web Parts
亠舒亳 仂亟亠亢亳仄仂亞仂
               仗仂仍亳亳从 弍亠亰仂仗舒仆仂亳
               仂仗仂于亠亠仆亳亶
               仗亠仂弍舒亰仂于舒仆亳 亟仂从仄亠仆仂于
               舒亳于舒亳亳 亳 于仂舒仆仂于仍亠仆亳亶
               于亠弍-仗亳仍仂亢亠仆亳
               亰舒仗亳亳 亳亰仄亠仆亠仆亳亶 于亠弍-
               仗亳仍仂亢亠仆亳 于 亢仆舒仍
               亳仂亟亠亶 仍亠从仂仆仆仂亶 仗仂;
               舒亳 于仂 于仆亠仆亳 舒弍仂亳
               仗仂亠舒
               亳仗仂仍亰仂于舒仆亳 Windows Live
               MetaWeblog API
               亳仗仂仍亰仂于舒仆亳 从仂亰亳仆
               仆亠亳仗仂仍亰亠仄 亠仄亠亶于
               舒亶仂于
               亳亰仄亠仆亠仆亳亶 舒亶仍舒 Web.config
亠舒亳 仂亟亠亢亳仄仂亞仂
               舒亳于舒亳亳 亳
               于仂舒仆仂于仍亠仆亳 弍舒亰
               亟舒仆仆
               仂弍仆仂于仍亠仆亳 弍舒亰 亟舒仆仆;
               仗亠亠仆仂舒 (仗亠亠仄亠亠仆亳)
               弍舒亰 亟舒仆仆
               亳仗舒于仍亠仆亳 弍舒亰 亟舒仆仆
               仂从亳 仂亠亟亳仆亠仆亳,
               于仂亟仆 亳仄亠仆亳
               仗仂仍亰仂于舒亠仍 亳 仗舒仂仍
               弍舒亰 亟舒仆仆
               仂亞舒仆亳亠仆亳 从仂仍亳亠于舒
               亠仄亠亶于 舒亶仂于
亠舒亳 仂亟亠亢亳仄仂亞仂
               仂仍亠亠 亟亠舒仍仆仂亠
               舒亟仄亳仆亳亳仂于舒仆亳亠
               亟亳仆 于亠弍-舒亶 于亠仆亠亞仂
               仂于仆
               个仆从亳亳, 亳仗
               仂亟亠亢亳仄仂亞仂, 于亠弍-
               舒亳, 舒弍仂亳亠
               仗仂亠
               舒于舒 仗仂 仄仂仍舒仆亳
               仍舒于仆亠 舒仆亳
               仂亳从
SPSite  亠仄亠亶于仂 舒亶仂于?

舒从 弍仍仂         舒从 舒仍仂
 SPSite  弌舒亶     SPSite  弌亠仄亠亶于仂 舒亶仂于
 SPWeb  亠弍       SPWeb  亠弍-舒亶 (舒亶)
SPSite  亠仄亠亶于仂 舒亶仂于?

舒从 弍仍仂                   舒从 舒仍仂
 SPSite  弌舒亶               SPSite  弌亠仄亠亶于仂 舒亶仂于
 SPWeb  亠弍                 SPWeb  亠弍-舒亶 (舒亶)


亟仆舒从仂, SPSite 仆亠 磦仍磳 从仂仍仍亠从亳亠亶 I弌ollection.
仂仍仍亠从亳亠亶 磦仍磳 SPSiteCollection  于仂亰于舒舒亠
从仂仍仍亠从亳 SPSite 亳亰 SPWebApplication.Sites
亠舒亳 仂亟亠亢亳仄仂亞仂
               仄舒从亳仄舒仍仆仂亶 亟仍亳仆
               URL-舒亟亠舒 于亠弍-舒亶舒
               RSS-从舒仆舒仍仂于
               仗仂于亠仂从
               仆亠亳仗仂仍亰亠仄 于亠弍-
               舒亶仂于
               仗舒于舒 于仍舒亟亠仆亳
               亠仄亠亶于仂仄 舒亶仂于
               从于仂 舒亰仄亠仂于 亠仄亠亶于
               舒亶仂于
               亟舒仆仆亠 亳仗仂仍亰仂于舒仆亳
               舒亶舒
亠舒亳 仂亟亠亢亳仄仂亞仂
               弍磶舒亠仍仆仂
               于仂亰亞仍舒于仍磳 SPSite
               仂亠仆亳亶 亟仍 SPSite,
               SPWeb
               仂亞舒亶 仆舒弍仂
               于仂亰仄仂亢仆仂亠亶 亟仍
               仆舒仂亶从亳 亳
               亳仗仂仍亰仂于舒仆亳
               舒亰亠亠仆亳 亳 仗舒于舒
亠舒亳 仂亟亠亢亳仄仂亞仂
               弌仂亟亠亢亳 从仂仍仍亠从亳
               亰舒仗亳亠亶
               仂弍舒亢亠仆亳亠 亟舒仆仆
               亠亟舒于仍亠仆亳
               仂亟亟亠亢亳于舒亠 亰舒仗仂
亠舒亳 仂亟亠亢亳仄仂亞仂
               舒仗亳, 亠亟亳仆亳舒 亟舒仆仆
               弌仍舒弍仂 亳仗亳亰亳仂于舒仆仆舒
               亠亳亳
               仂仗
亠舒亳 仂亟亠亢亳仄仂亞仂
               弌仂仍弍
               舒亰仍亳仆亠 亳仗 亟舒仆仆
               个仂仄亳仂于舒仆亳亠 亳仗仂于
               仂亟亠亢亳仄仂亞仂
SharePoint: Object Model & Web Parts
SharePoint: Object Model & Web Parts
SharePoint: Object Model & Web Parts
SharePoint: Object Model & Web Parts
从亳 (弌亠于亳)
亊亟舒 (SharePoint)
从舒亳 (亠弍-舒亳)
丿舒弍仍仂仆 仗亠亟舒于仍亠仆亳
弌从舒 仗亳仍仂亢亠仆亳
public interface IService
{
  string GetWebInfo(SPWeb web);
}
弌从舒 仗亳仍仂亢亠仆亳
public interface IPresenter
{
  IView View{ get ;}
  IService Service { get ;}
  void OnAction();
}
弌从舒 仗亳仍仂亢亠仆亳
public interface IView
{
  string Message { get; set;};
}
仍舒亞亳仆 亟仍 Visual Studio



 SPVisualDev        WSSeVS
  WSPBuilder
   SPSource
仍舒亞亳仆: SPVisualDev
 http://www.codeplex.com/SPVisualDev
 弌从舒 仗舒仗从亳 12
 弌亳仆仂仆亳亰舒亳  12
 丐亳仗 仗仂亠从仂于
 弌弍仂从舒 WSP
仍舒亞亳仆: WSPBuilder
 http://www.codeplex.com/wspbuilder
 弌弍仂从舒 亠亠仆亳亶
 舒亳亠仆亳 亟仍 亟亳亳
仍舒亞亳仆: SPSource
 http://www.codeplex.com/SPSource
 亠仆亠舒亳 仗仂亠从仂于
 仂亰仄仂亢仆仂亳 仂弍仆仂于仍亠仆亳
 舒弍仂舒  VSeWSS, WSPBuilder or STSDev
弌从舒 仗亳仍仂亢亠仆亳
SharePoint: Object Model & Web Parts
仂仆亳从亳
http://martinfowler.com/eaaDev/ModelViewPresenter.html



http://spg.codeplex.com/



http://msdn.microsoft.com/ru-ru/library/cc300138.aspx



http://msdn.microsoft.com/ru-ru/library/aa973248.aspx

More Related Content

SharePoint: Object Model & Web Parts