UserDefinedFunction UserDefinedFunction UserDefinedFunction Constructors

Definition

Overloads

UserDefinedFunction() UserDefinedFunction() UserDefinedFunction()

Initializes a new instance of the UserDefinedFunction class.

UserDefinedFunction(Database, String) UserDefinedFunction(Database, String)

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

UserDefinedFunction(Database, String, String) UserDefinedFunction(Database, String, String)

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

UserDefinedFunction() UserDefinedFunction() UserDefinedFunction()

Initializes a new instance of the UserDefinedFunction class.

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

Examples

Calling Methods

Remarks

The default constructor initializes any fields to their default values.

UserDefinedFunction(Database, String) UserDefinedFunction(Database, String)

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

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

A Database object value that specifies the database to which the user-defined function belongs.

name
String String String

A String value that specifies the name of the user-defined function.

Examples

Calling Methods

UserDefinedFunction(Database, String, String) UserDefinedFunction(Database, String, String)

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

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

A Database object value that specifies the database to which the user-defined function belongs.

name
String String String

A String value that specifies the name of the user-defined function.

schema
String String String

A String value that specifies the schema of the user-defined function.

Examples

Calling Methods

Applies to