SqlRuleAction SqlRuleAction SqlRuleAction Class


表示以基于 SQL 语言的语法编写的一组操作,该语法针对 BrokeredMessage 执行。 有关 SQLRuleAction 语法的信息,请参阅 SQLRuleAction 语法

[System.Runtime.Serialization.DataContract(Name="SqlRuleAction", Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
public sealed class SqlRuleAction : Microsoft.ServiceBus.Messaging.RuleAction
type SqlRuleAction = class
    inherit RuleAction
Public NotInheritable Class SqlRuleAction
Inherits RuleAction


SqlRuleAction(String) SqlRuleAction(String) SqlRuleAction(String)

Initializes a new instance of the SqlRuleAction class with the specified SQL expression.

SqlRuleAction(String, Int32) SqlRuleAction(String, Int32) SqlRuleAction(String, Int32)

Initializes a new instance of the SqlRuleAction class with the specified SQL expression and compatibility level.


CompatibilityLevel CompatibilityLevel CompatibilityLevel

This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.

IExtensibleDataObject.ExtensionData IExtensibleDataObject.ExtensionData IExtensibleDataObject.ExtensionData Inherited from RuleAction
Parameters Parameters Parameters

Sets the value of a rule action.

RequiresPreprocessing RequiresPreprocessing RequiresPreprocessing

Gets a value indicating whether the SqlRuleAction requires preprocessing.

SqlExpression SqlExpression SqlExpression

Gets the SQL expression.


Execute(BrokeredMessage) Execute(BrokeredMessage) Execute(BrokeredMessage)

Executes the SqlRuleAction object.

Preprocess() Preprocess() Preprocess()

Gets the pre-processed RuleAction expression.

ToString() ToString() ToString()

Returns a string representation of SqlRuleAction.

Validate() Validate() Validate()

Validates the SQL expression against the SQL 92 syntax and rules.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to