சென்னை

ஷேர்பாயிண்ட் வாடிக்கையாளர் ஆப்ஜெக்ட் மாதிரி 2010 - பகுதி 1

ஷேர்பாயிண்ட் வாடிக்கையாளர் ஆப்ஜெக்ட் மாதிரி 2010 டெவலப்பர்கள் ஒரு கனவு இருக்கிறது. It enables developers to
access the SharePoint data from client, குறியீடு சர்வர் நிறுத்தி.

வாடிக்கையாளர் ஆப்ஜெக்ட் மாதிரி பின்வரும் மூன்று வழிகளில் பயன்படுத்த.

  • .Net CLR
  • Silverlight Object Model
  • JavaScript

.நிகர சிஎல்ஆர் உதாரணம்:

Create the context to the SharePoint site. No traffic/requests will be made to the server until you call the ExecuteQuery()


try

Source Code

{


ClientContext ctx = புதிய
ClientContext(“http://லோக்கல் ஹோஸ்ட்”);


வலை site = ctx.Web;

ctx.Load(site);

ctx.ExecuteQuery();

site.Title = “Update from Client Object Model – Win App”;

site.Update();

ctx.ExecuteQuery();


MessageBox.Show(“Update Succeeded”);

}


(விதிவிலக்கு ex)

{


MessageBox.Show(“Update Failed “ + ex.ToString());

}

1 comment to Client Object Model in SharePoint 2010 - பகுதி 1

ஒரு பதில் விடவும்

நீங்கள் பயன்படுத்த முடியும் இந்த HTML குறிச்சொற்களை

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>