你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IWithCors.WithCORSRules(IList<CorsRule>) 方法

定义

指定所有 CORS 规则。

public Microsoft.Azure.Management.Storage.Fluent.BlobServiceProperties.Update.IUpdate WithCORSRules (System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Fluent.Models.CorsRule> corsRules);
abstract member WithCORSRules : System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Fluent.Models.CorsRule> -> Microsoft.Azure.Management.Storage.Fluent.BlobServiceProperties.Update.IUpdate
Public Function WithCORSRules (corsRules As IList(Of CorsRule)) As IUpdate

参数

corsRules
IList<CorsRule>

指定 Blob 服务的 CORS 规则。 最多可以在请求中包含五个 CorsRule 元素。 如果请求正文中不包含 CorsRule 元素,则将删除所有 CORS 规则,并且将禁用 Blob 服务的 CORS。

返回

适用于