IndexOperationsExtensions.GetStatistics 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 IndexGetStatisticsResponse
returnValue = IndexOperationsExtensions.GetStatistics(operations, indexName)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetStatistics ( _
operations As IIndexOperations, _
indexName As String _
) As IndexGetStatisticsResponse
[ExtensionAttribute]
public static IndexGetStatisticsResponse GetStatistics (
IIndexOperations operations,
string indexName
)
[ExtensionAttribute]
public:
static IndexGetStatisticsResponse^ GetStatistics (
IIndexOperations^ operations,
String^ indexName
)
/** @attribute ExtensionAttribute() */
public static IndexGetStatisticsResponse GetStatistics (
IIndexOperations operations,
String indexName
)
ExtensionAttribute
public static function GetStatistics (
operations : IIndexOperations,
indexName : String
) : 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