DocumentOperationsExtensions.CountAsync Method

Queries the number of documents in the Azure Search index. (see https://msdn.microsoft.com/en-us/library/azure/dn798939.aspx for more information)

Namespace: Microsoft.Azure.Search
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)

Usage

'Usage
Dim operations As IDocumentOperations
Dim returnValue As Task(Of DocumentCountResponse)

returnValue = DocumentOperationsExtensions.CountAsync(operations)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CountAsync ( _
    operations As IDocumentOperations _
) As Task(Of DocumentCountResponse)
[ExtensionAttribute] 
public static Task<DocumentCountResponse> CountAsync (
    IDocumentOperations operations
)
[ExtensionAttribute] 
public:
static Task<DocumentCountResponse^>^ CountAsync (
    IDocumentOperations^ operations
)
/** @attribute ExtensionAttribute() */ 
public static Task<DocumentCountResponse> CountAsync (
    IDocumentOperations operations
)
ExtensionAttribute 
public static function CountAsync (
    operations : IDocumentOperations
) : Task<DocumentCountResponse>

Parameters

  • operations
    Reference to the Microsoft.Azure.Search.IDocumentOperations.

Return Value

Response containing the count of documents in the index.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

DocumentOperationsExtensions Class
DocumentOperationsExtensions Members
Microsoft.Azure.Search Namespace