Subscription.GetRule Method

Gets a rule with the specified name. Returns null if the rule does not exist in this subscription.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

Syntax

'Declaration
Public Function GetRule ( _
    ruleName As String _
) As Rule
'Usage
Dim instance As Subscription
Dim ruleName As String
Dim returnValue As Rule

returnValue = instance.GetRule(ruleName)
public Rule GetRule(
    string ruleName
)
public:
Rule^ GetRule(
    String^ ruleName
)
member GetRule : 
        ruleName:string -> Rule 
public function GetRule(
    ruleName : String
) : Rule

Parameters

Return Value

Type: Microsoft.ServiceBus.Messaging.Rule
The rule handle. Null if the rule does not exist.

See Also

Reference

Subscription Class

Microsoft.ServiceBus.Messaging Namespace