ClientRuntimeContext.CastTo<T> 方法
轉換為其衍生類型的指定的用戶端物件。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight.Runtime (在 Microsoft.SharePoint.Client.Silverlight.Runtime.dll 中); Microsoft.SharePoint.Client.Phone.Runtime (在 Microsoft.SharePoint.Client.Phone.Runtime.dll 中) Microsoft.SharePoint.Client.Runtime (在 Microsoft.SharePoint.Client.Runtime.dll 中)
語法
'宣告
Public Function CastTo(Of T As ClientObject) ( _
obj As ClientObject _
) As T
'用途
Dim instance As ClientRuntimeContext
Dim obj As ClientObject
Dim returnValue As T
returnValue = instance.CastTo(obj)
public T CastTo<T>(
ClientObject obj
)
where T : ClientObject
參數類型
- T
指定的用戶端物件衍生的類型。
參數
obj
類型:Microsoft.SharePoint.Client.ClientObject代表用戶端物件,將會轉換為其衍生類型需要ClientObject物件。
傳回值
類型:T
一般類型的物件。