Sarahrb
Sarahrb

Reputation: 669

How to assign "*" to IfMatch - conditional header

I download blob content from Azure blob storage. I am trying to set conditional header ETag value as "*".

When i give IfMatch = "*", says cannot implicitly convert string to Azure.ETag.

        Conditions = new BlobRequestConditions()
        {
           IfMatch = "*"  

        }
   

How do I assign IfMatch to *. Thank you.

Upvotes: 0

Views: 316

Answers (1)

Jonxag
Jonxag

Reputation: 787

Not sure, but you are looking for this? You can not assign a String value to an ETag

IfMatch = new ETag("*")

Upvotes: 1

Related Questions