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

RuleEngineWorkerSelectorAttachment.Rule 属性

定义

以下类型之一的规则:

StaticRule:提供始终返回相同结果(无论输入如何)的静态规则的规则。 DirectMapRule:返回与输入标签相同的标签的规则。 ExpressionRule:提供内联表达式规则的规则。 AzureFunctionRule:提供对 HTTP 触发的 Azure 函数的绑定的规则。 WebhookRule:提供绑定到遵循 OAuth2.0 身份验证协议的 Web 服务器的规则。 请注意 RouterRule , 是基类。 根据方案,可能需要在此处分配基类的派生类,或者需要将此属性强制转换为可能的派生类之一。 可用的派生类包括 FunctionRouterRuleDirectMapRouterRuleExpressionRouterRuleStaticRouterRuleWebhookRouterRule

public Azure.Communication.JobRouter.RouterRule Rule { get; set; }
member this.Rule : Azure.Communication.JobRouter.RouterRule with get, set
Public Property Rule As RouterRule

属性值

适用于