鑄造

2017-07-13 245 views
1

Microsoft.SharePoint.ClientMicrosoft.SharePoint類型之間的任何小事鑄造?
Microsoft.SharePoint.Client.BaseTypeMicrosoft.SharePoint.SPBaseType, 或如
Microsoft.SharePoint.Client.ListItemMicrosoft.SharePoint.SPListItem鑄造

回答

2

不,沒有。這些是完全不同的類型,甚至整個組件都應該用於不同的場景。

  • Microsoft.SharePoint.Client.*類形成客戶端對象模型,實際上,這意味着您的代碼與SharePoint進行遠程交互,在任何SharePoint進程之外運行;
  • Microsoft.SharePoint.*.SP*類構成的服務器端對象模型,它適用於內運行所有SharePoint過程的代碼。

你不應該以單一的代碼進行混合。

+0

感謝您的快速響應! –