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 命名空间