নথিপত্র

SharePoint ক্লায়েন্ট অবজেক্ট মডেল 2010 - পার্ট 1

SharePoint ক্লায়েন্ট অবজেক্ট মডেল 2010 is one of the developers dream. It enables developers to
access the SharePoint data from client, the code need not to be deployed in to the server.

Client Object Model can be used in the following three ways.

  • .Net CLR
  • Silverlight Object Model
  • JavaScript

.Net CLR Example:

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://স্থানীয় হোস্ট”);


Web 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>