次の方法で共有


DeliveryRule(Int32, IEnumerable<DeliveryRuleAction>) コンストラクター

定義

DeliveryRule の新しいインスタンスを初期化します。

public DeliveryRule (int order, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.DeliveryRuleAction> actions);
new Azure.ResourceManager.Cdn.Models.DeliveryRule : int * seq<Azure.ResourceManager.Cdn.Models.DeliveryRuleAction> -> Azure.ResourceManager.Cdn.Models.DeliveryRule
Public Sub New (order As Integer, actions As IEnumerable(Of DeliveryRuleAction))

パラメーター

order
Int32

エンドポイントにルールが適用される順序。 使用可能な値 {0,1,2,3,.........} 順序が小さいルールは、より大きな順序のルールの前に適用されます。 順序 0 のルールは特別なルールです。 条件を必要とせず、それに記載されているアクションは常に適用されます。

actions
IEnumerable<DeliveryRuleAction>

ルールのすべての条件が満たされたときに実行されるアクションの一覧。 基底クラスであることに注意 DeliveryRuleAction してください。 このシナリオでは、基底クラスの派生クラスをここで割り当てる必要があるか、このプロパティを使用可能な派生クラスのいずれかにキャストする必要があります。 使用可能な派生クラスには、、、、、DeliveryRuleRequestHeaderActionOriginGroupOverrideActionDeliveryRuleResponseHeaderActionUriRedirectActionDeliveryRuleRouteConfigurationOverrideActionUriRewriteAction、および UriSigningActionが含まれますDeliveryRuleCacheExpirationActionDeliveryRuleCacheKeyQueryStringAction

例外

actions が null です。

適用対象