次の方法で共有


ClientRuntimeContext.CastTo<T> メソッド

Casts a specified client object to its derived type.

名前空間:  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
    The derived type of the specified client object.

パラメーター

戻り値

型: T
An object of a generic type.

関連項目

参照先

ClientRuntimeContext クラス

ClientRuntimeContext メンバー

Microsoft.SharePoint.Client 名前空間