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.