Skip to content

error CS0122: 'AmazonS3Client.DeleteObject(DeleteObjectRequest)' is inaccessible due to its protection level #2104

Answered by ashishdhingra
dburtsev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dburtsev,

Good afternoon.

The DeleteObject (synchronous) version is available for applications targeting .NET Framework (refer). For applications targeting NetStandard (.NET Core or .NET 6), only asynchronous version DeleteObjectAsync is available. This is true for any Amazon service client, not just AmazonS3Client.

Thanks,
Ashish

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ashishdhingra
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. s3
2 participants
Converted from issue

This discussion was converted from issue #2100 on September 08, 2022 16:32.