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.
パラメーター
obj
型: Microsoft.SharePoint.Client.ClientObjectThe ClientObject object that represents the client object that needs to be cast to its derived type.
戻り値
型: T
An object of a generic type.