Server Object Model
An Object model is group of Objects related with each other using Has a Relationship.
In this Part, Just see a Small Console Example.
go to visual Studio -->File-->New-->Project-->Select Console Application Template-->Click on Ok
SharePoint Applications must be compiled for X64 and not x86 build.
Go to Build-->Configuration Manager-->Active Solution Platform-->New-->Select X64
Add Reference -->
go to Solution Explorer(ctrl+shift+L)-->Add Reference--> Go to "Browser" and select Browser-->C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.dll-->click on OK
Go to program.cs
Write following code:
Build and Run
.png)
Comments
Post a Comment