AzureConfig.Program.DeleteCatalogIndex C# (CSharp) Метод

DeleteCatalogIndex() приватный статический Метод

private static DeleteCatalogIndex ( ) : bool
Результат bool
        private static bool DeleteCatalogIndex()
        {
            Uri uri = new Uri(_serviceUri, "/indexes/invoicetransactions");
            HttpResponseMessage response = AzureSearchHelper.SendSearchRequest(_httpClient, HttpMethod.Delete, uri);
            if (response.StatusCode == HttpStatusCode.NotFound)
            {
                return false;
            }
            response.EnsureSuccessStatusCode();
            return true;
        }