શેરપોઈન્ટ માં ક્લાઈન્ટ ઓબ્જેક્ટ મોડેલ 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());
}
ત્યાં, its good article on the topic of media print, we all understand media is a enormous source of data.