IndexOperationsExtensions.GetStatisticsAsync Method
Returns statistics for the given index, including a document count and storage usage. (see https://msdn.microsoft.com/en-us/library/azure/dn798942.aspx for more information)
Namespace: Microsoft.Azure.Search
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)
Usage
'Usage
Dim operations As IIndexOperations
Dim indexName As String
Dim returnValue As Task(Of IndexGetStatisticsResponse)
returnValue = IndexOperationsExtensions.GetStatisticsAsync(operations, indexName)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetStatisticsAsync ( _
operations As IIndexOperations, _
indexName As String _
) As Task(Of IndexGetStatisticsResponse)
[ExtensionAttribute]
public static Task<IndexGetStatisticsResponse> GetStatisticsAsync (
IIndexOperations operations,
string indexName
)
[ExtensionAttribute]
public:
static Task<IndexGetStatisticsResponse^>^ GetStatisticsAsync (
IIndexOperations^ operations,
String^ indexName
)
/** @attribute ExtensionAttribute() */
public static Task<IndexGetStatisticsResponse> GetStatisticsAsync (
IIndexOperations operations,
String indexName
)
ExtensionAttribute
public static function GetStatisticsAsync (
operations : IIndexOperations,
indexName : String
) : Task<IndexGetStatisticsResponse>
Parameters
- operations
Reference to the Microsoft.Azure.Search.IIndexOperations.
- indexName
Required. The name of the index for which to retrieve statistics.
Return Value
Statistics for a given index. Statistics are collected periodically and are not guaranteed to always be up-to-date.
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
IndexOperationsExtensions Class
IndexOperationsExtensions Members
Microsoft.Azure.Search Namespace