Rule Rule Rule Constructors

Definition

Overloads

Rule() Rule() Rule()

Initializes a new instance of the Rule class.

Rule(Database, String) Rule(Database, String)

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

Rule(Database, String, String) Rule(Database, String, String)

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

Rule() Rule() Rule()

Initializes a new instance of the Rule class.

public:
 Rule();
public Rule ();
Public Sub New ()

Examples

Creating, Altering, and Removing Rules

Remarks

The default constructor initializes any fields to their default values.

See Also

Rule(Database, String) Rule(Database, String)

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

public:
 Rule(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name);
public Rule (Microsoft.SqlServer.Management.Smo.Database database, string name);
Parameters
database
Database Database Database

A Database object value that specifies the parent of the Rule object.

name
String String String

A String value that specifies the name of the rule.

Examples

Creating, Altering, and Removing Rules

Rule(Database, String, String) Rule(Database, String, String)

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

public:
 Rule(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name, System::String ^ schema);
public Rule (Microsoft.SqlServer.Management.Smo.Database database, string name, string schema);
Parameters
database
Database Database Database

A Database object value that specifies the parent of the Rule object.

name
String String String

A String value that specifies the name of the rule.

schema
String String String

A String value that specifies the schema for the rule.

Examples

Creating, Altering, and Removing Rules

Applies to