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

DeliveryRule 构造函数

定义

重载

DeliveryRule()

初始化 DeliveryRule 类的新实例。

DeliveryRule(Int32, IList<DeliveryRuleAction>, String, IList<DeliveryRuleCondition>)

初始化 DeliveryRule 类的新实例。

DeliveryRule()

初始化 DeliveryRule 类的新实例。

public DeliveryRule ();
Public Sub New ()

适用于

DeliveryRule(Int32, IList<DeliveryRuleAction>, String, IList<DeliveryRuleCondition>)

初始化 DeliveryRule 类的新实例。

public DeliveryRule (int order, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleAction> actions, string name = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleCondition> conditions = default);
new Microsoft.Azure.Management.Cdn.Models.DeliveryRule : int * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleAction> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeliveryRuleCondition> -> Microsoft.Azure.Management.Cdn.Models.DeliveryRule
Public Sub New (order As Integer, actions As IList(Of DeliveryRuleAction), Optional name As String = Nothing, Optional conditions As IList(Of DeliveryRuleCondition) = Nothing)

参数

order
Int32

为终结点应用规则的顺序。 可能的值 {0,1,2,3,.........}。 顺序较小的规则将在顺序较大的规则之前应用。 顺序为 0 的规则是一种特殊规则。 它不需要任何条件,并且将始终应用其中列出的操作。

actions
IList<DeliveryRuleAction>

在满足规则的所有条件时执行的操作列表。

name
String

规则名称

conditions
IList<DeliveryRuleCondition>

要执行的操作必须匹配的条件列表

适用于