TypedTableBase<T>.Cast<TResult> Método

Definição

Converte os elementos de um TypedTableBase<T> para o tipo especificado.Converts the elements of an TypedTableBase<T> to the specified type. Este método dá suporte à geração de objetos de tipo DataTable pelo Visual Studio e a ferramenta do XSD.exe do .NET Framework.This method supports typed DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. Esse método não se destina a ser usado diretamente do seu código.This method is not intended to be used directly from your code.

public:
generic <typename TResult>
 System::Data::EnumerableRowCollection<TResult> ^ Cast();
public System.Data.EnumerableRowCollection<TResult> Cast<TResult> ();
member this.Cast : unit -> System.Data.EnumerableRowCollection<'Result>
Public Function Cast(Of TResult) () As EnumerableRowCollection(Of TResult)

Parâmetros de tipo

TResult

O tipo para o qual converter os elementos.The type to convert the elements to.

Retornos

EnumerableRowCollection<TResult>

Um EnumerableRowCollection que contém cada elemento da sequência de origem convertido para o tipo especificado.An EnumerableRowCollection that contains each element of the source sequence converted to the specified type.

Aplica-se a