Compartilhar via


MobileServiceCollectionExtensions.ToCollectionAsync Método

Definição

Sobrecargas

ToCollectionAsync<TTable>(IMobileServiceTable<TTable>, Int32)

Crie uma nova coleção com base na tabela.

ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32)

Crie uma nova coleção com base na consulta.

ToCollectionAsync<TTable>(IMobileServiceSyncTable<TTable>, Int32)

Crie uma nova coleção com base na tabela local.

ToCollectionAsync<TTable>(IMobileServiceTable<TTable>, Int32)

Crie uma nova coleção com base na tabela.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.IMobileServiceTable<TTable> table, int pageSize = 0);
static member ToCollectionAsync : Microsoft.WindowsAzure.MobileServices.IMobileServiceTable<'able> * int -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<'able, 'able>>
<Extension()>
Public Function ToCollectionAsync(Of TTable) (table As IMobileServiceTable(Of TTable), Optional pageSize As Integer = 0) As Task(Of MobileServiceCollection(Of TTable, TTable))

Parâmetros de tipo

TTable

Parâmetros

table
IMobileServiceTable<TTable>

A tabela da qual a nova coleção será criada.

pageSize
Int32

Tamanho de página opcional.

Retornos

Task<MobileServiceCollection<TTable,TTable>>

A coleção.

Aplica-se a

ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32)

Crie uma nova coleção com base na consulta.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<TTable> query, int pageSize = 0);
static member ToCollectionAsync : Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'able> * int -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<'able, 'able>>
<Extension()>
Public Function ToCollectionAsync(Of TTable) (query As IMobileServiceTableQuery(Of TTable), Optional pageSize As Integer = 0) As Task(Of MobileServiceCollection(Of TTable, TTable))

Parâmetros de tipo

TTable

Parâmetros

query
IMobileServiceTableQuery<TTable>

A consulta a ser avaliada para dados.

pageSize
Int32

Tamanho de página opcional.

Retornos

Task<MobileServiceCollection<TTable,TTable>>

A coleção.

Aplica-se a

ToCollectionAsync<TTable>(IMobileServiceSyncTable<TTable>, Int32)

Crie uma nova coleção com base na tabela local.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<TTable> table, int pageSize = 0);
static member ToCollectionAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'able> * int -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<'able, 'able>>
<Extension()>
Public Function ToCollectionAsync(Of TTable) (table As IMobileServiceSyncTable(Of TTable), Optional pageSize As Integer = 0) As Task(Of MobileServiceCollection(Of TTable, TTable))

Parâmetros de tipo

TTable

Parâmetros

table
IMobileServiceSyncTable<TTable>

A tabela local da qual criar a nova coleção.

pageSize
Int32

Tamanho de página opcional.

Retornos

Task<MobileServiceCollection<TTable,TTable>>

A coleção.

Aplica-se a