شیئرپوائنٹ میں کلائنٹ آبجیکٹ ماڈل 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.