Default Default Default Constructors

Definition

Overloads

Default() Default() Default()

Initializes a new instance of the Default class.

Default(Database, String) Default(Database, String)

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

Default(Database, String, String) Default(Database, String, String)

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

Default() Default() Default()

Initializes a new instance of the Default class.

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

Examples

Creating, Altering, and Removing Defaults

Remarks

The default constructor initializes any fields to their default values.

Default(Database, String) Default(Database, String)

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

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

A Database object that specifies the database that owns the Default object.

name
String String String

A string value that specifies the name of the Default object.

Examples

Creating, Altering, and Removing Defaults

Default(Database, String, String) Default(Database, String, String)

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

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

A Database object that specifies the database that owns the Default object.

name
String String String

A string value that specifies the name of the Default object.

schema
String String String

A String value that specifies the schema in which to create the Default object.

Examples

Creating, Altering, and Removing Defaults

Applies to