Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定数据库的名称,或需要与之建立连接的已装载数据库的名称。
Public Property DatabaseName As String
public string DatabaseName {get;set;}
ArgumentException 值包含分号,或以单引号或双引号开头。
指定数据库名称的字符串。缺省值为空值引用(在 Visual Basic 中是 Nothing)。
启动数据库时会为它指派一个数据库名,既可使用 dbn 参数显式指派,也可由 UltraLite 使用不带扩展名和路径的基本文件名进行指派。
打开连接时,UltraLite 会首先搜索具有匹配 dbn 参数且正在运行的数据库。如果未找到,则 UltraLite 会使用适当的数据库文件名参数(DatabaseOnDevice 或 DatabaseOnDesktop 属性)启动新的数据库。
如果应用程序(或 UltraLite 引擎)需要访问两个具有相同基本文件名的不同数据库,则必须使用此参数。