Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm working with a Azure Web App site, while compiling the application these couple errors showed up.
here is the code snip:

protected override void DeletePictureThumbs(Picture picture)
{
    string str = $"{picture.Id.ToString("0000000")}";
    using (IEnumerator<Microsoft.WindowsAzure.StorageClient.IListBlobItem> enumerator = cloudBlobContainer_0.ListBlobs(str, false, 0, null, null).GetEnumerator())
    {
        while (enumerator.MoveNext())
        {
            ((Microsoft.WindowsAzure.StorageClient.CloudBlockBlob)enumerator.Current).Delete(0, null, null, null);
        }
    }
}


Need help in correcting the syntax
Thank you

What I have tried:

Changed
ListBlobs to ListBlobsSegmented and Delete to DeleteIfExists
but I"m not sure that's the correct approach
Posted
Updated 19-Mar-18 10:33am

1 solution

Follow the instruction from MSDN: Compiler Error CS1501 | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900