Sets the methods allowed for this rule.
Declaration Syntax
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 )
Parameters
- args (array<String>[]()[][])
- AllowedMethods property
Return Value
this instance
Remarks
Accepted methods are GET, PUT, HEAD, DELETE and POST.
Each CORSRule must contain at least one AllowedMethod and one AllowedOrigin element.