Sets the methods allowed for this rule.
| C# |
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public CORSRule WithAllowedMethods( params string[] args )
- args (array<String>[]()[][])
- AllowedMethods property
this instance
Accepted methods are GET, PUT, HEAD, DELETE and POST.
Each CORSRule must contain at least one AllowedMethod and one AllowedOrigin element.