Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ClientRuntimeContext.CastTo<T> method

Casts a specified client object to its derived type.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  Microsoft.SharePoint.Client.Phone.Runtime (in Microsoft.SharePoint.Client.Phone.Runtime.dll)  Microsoft.SharePoint.Client.Phone.Runtime (in Microsoft.SharePoint.Client.Phone.Runtime.dll)  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)
public T CastTo<T>(
	ClientObject obj
where T : ClientObject

Type parameters


The derived type of the specified client object.


Type: Microsoft.SharePoint.Client.ClientObject

The ClientObject object that represents the client object that needs to be cast to its derived type.

Return value

Type: T
An object of a generic type.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.