Web.GetEntity 方法
指定外部內容類型與目前網站的內容中的名稱與指定的命名空間。這個方法作為進入點,以建立、 讀取、 更新及刪除 (CRUD) 作業Entity。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Function GetEntity ( _
namespace As String, _
name As String _
) As Entity
'用途
Dim instance As Web
Dim namespace As String
Dim name As String
Dim returnValue As Entity
returnValue = instance.GetEntity(namespace, _
name)
public Entity GetEntity(
string namespace,
string name
)
參數
namespace
類型:System.String外部內容類型的命名空間。
name
類型:System.String外部內容類型的名稱。
傳回值
類型:Microsoft.BusinessData.MetadataModel.Entity
使用目前網站的內容中的名稱與指定的命名空間外部內容類型。