RuleIdParameter.GetRuleCollectionId Method

Returns the Active Directory object identifier of the transport rule collection.

Namespace:  Microsoft.Exchange.MessagingPolicies.Rules.Tasks
Assembly:  Microsoft.Exchange.Management (in Microsoft.Exchange.Management.dll)

Syntax

'Declaration
Public Shared Function GetRuleCollectionId ( _
    session As IConfigDataProvider, _
    ruleCollection As String _
) As ADObjectId
'Usage
Dim session As IConfigDataProvider
Dim ruleCollection As String
Dim returnValue As ADObjectId

returnValue = RuleIdParameter.GetRuleCollectionId(session, _
    ruleCollection)
public static ADObjectId GetRuleCollectionId(
    IConfigDataProvider session,
    string ruleCollection
)

Parameters

  • ruleCollection
    Type: System.String
    The identifier of the transport rule collection to return.

Return Value

Type: Microsoft.Exchange.Data.Directory.ADObjectId
The Active Directory object identifier of the specified transport rule collection.