Chili.Opf3 Send comments on this topic.
MsSqlStorage Constructor(String,String,String,String)
See Also 
Chili.Opf3.Storages.MsSql Namespace > MsSqlStorage Class > MsSqlStorage Constructor : MsSqlStorage Constructor(String,String,String,String)




user
Specifies the name of the user that connects to the storage.
password
Specifies the password of the user that connects to the storage.
host
Specifies the hostname of the machine where the database is installed.
database
Specifies the name of the database that you want connect to.
Creates a new instance of the MsSqlStorage Class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal user As String, _
   ByVal password As String, _
   ByVal host As String, _
   ByVal database As String _
)
Visual Basic (Usage)Copy Code
Dim user As String
Dim password As String
Dim host As String
Dim database As String
 
Dim instance As MsSqlStorage(user, password, host, database)
C# 
public MsSqlStorage( 
   string user,
   string password,
   string host,
   string database
)
Managed Extensions for C++ 
public: MsSqlStorage( 
   string* user,
   string* password,
   string* host,
   string* database
)
C++/CLI 
public:
MsSqlStorage( 
   String^ user,
   String^ password,
   String^ host,
   String^ database
)

Parameters

user
Specifies the name of the user that connects to the storage.
password
Specifies the password of the user that connects to the storage.
host
Specifies the hostname of the machine where the database is installed.
database
Specifies the name of the database that you want connect to.

Exceptions

ExceptionDescription
ArgumentNullExceptionUser is null, password is null and database is null.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also