Share via


RuleCollection Clase

The RuleCollection class represents a collection of Rule objects that represent all the rules defined on the instance of SQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public NotInheritable Class RuleCollection _
    Inherits SchemaCollectionBase
'Uso
Dim instance As RuleCollection
public sealed class RuleCollection : SchemaCollectionBase
public ref class RuleCollection sealed : public SchemaCollectionBase
[<SealedAttribute>]
type RuleCollection =  
    class
        inherit SchemaCollectionBase
    end
public final class RuleCollection extends SchemaCollectionBase

Notas

A RuleCollection object can be used to gain access to a set of rules. You can use the Item property to return a specific Rule object.

Ejemplos

Usar colecciones

Seguridad para subprocesos

Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.