This documentation is archived and is not being maintained.

SubscriptionEventRuleCollection Class

Represents the collection of event rules for a subscription class.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

[DefaultMemberAttribute("Item")] 
public class SubscriptionEventRuleCollection : SimpleObjectCollectionBase
/** @attribute DefaultMemberAttribute("Item") */ 
public class SubscriptionEventRuleCollection extends SimpleObjectCollectionBase
DefaultMemberAttribute("Item") 
public class SubscriptionEventRuleCollection extends SimpleObjectCollectionBase

Each subscription class can have event rules, which contain rules for event-driven subscriptions, and scheduled rules, which contain queries for scheduled subscriptions. The SubscriptionEventRuleCollection collection is for event rules.

Use the SubscriptionEventRule class to define individual event rules.


Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Show: