Compartir a través de


Rule Constructor (Database, String, String)

Initializes a new instance of the Rule class on the specified database, with the specified name and schema.

Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Sub New ( _
    database As Database, _
    name As String, _
    schema As String _
)
public Rule (
    Database database,
    string name,
    string schema
)
public:
Rule (
    Database^ database, 
    String^ name, 
    String^ schema
)
public Rule (
    Database database, 
    String name, 
    String schema
)
public function Rule (
    database : Database, 
    name : String, 
    schema : String
)

Parámetros

  • database
    A Database object value that specifies the parent of the Rule object.
  • name
    A String value that specifies the name of the rule.
  • schema
    A String value that specifies the schema for the rule.

Notas

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

Ejemplo

How to: Create, Alter, and Remove a Rule in Visual Basic .NET

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

Rule Class
Rule Members
Microsoft.SqlServer.Management.Smo Namespace

Otros recursos

Creating, Altering, and Removing Rules
Reglas
CREATE RULE (Transact-SQL)