SqlRuleAction SqlRuleAction SqlRuleAction Class


Represents a set of actions written in SQL language-based syntax that is performed against a BrokeredMessage. For information about SQLRuleAction syntax, see SQLRuleAction syntax.

[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.

Applies to