આર્કાઇવ્ઝ

શેરપોઈન્ટ માં ક્લાઈન્ટ ઓબ્જેક્ટ મોડેલ 2010 - ભાગ 1

શેરપોઈન્ટ માં ક્લાઈન્ટ ઓબ્જેક્ટ મોડેલ 2010 વિકાસકર્તાઓ એક સ્વપ્ન છે. It enables developers to
access the SharePoint data from client, આ કોડ સર્વર પર જમાવટ કરી જરૂર નથી.

ક્લાઈન્ટ ઓબ્જેક્ટ મોડેલ નીચેની ત્રણ રીતે વાપરી શકાય છે.

  • .Net CLR
  • Silverlight Object Model
  • JavaScript

.નેટ CLR ઉદાહરણ:

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

એક જવાબ છોડો

તમે ઉપયોગ કરી શકો છો આ એચટીએમએલ ટૅગ્સ

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