VistaDB 5






DataSource Property (VistaDBConnectionStringBuilder)
The name and file location of the database to open. May include the |DataDirectory| macro to indicate local working path.
Syntax
'Declaration
 
<System.ComponentModel.DisplayNameAttribute("Data Source")>
<System.ComponentModel.DescriptionAttribute("The name and file location of the database to open.")>
<System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)>
<System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.FileNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
Public Property DataSource As System.String
'Usage
 
Dim instance As VistaDBConnectionStringBuilder
Dim value As System.String
 
instance.DataSource = value
 
value = instance.DataSource
[System.ComponentModel.DisplayName("Data Source")]
[System.ComponentModel.Description("The name and file location of the database to open.")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.FileNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public System.string DataSource {get; set;}
public read-write property DataSource: System.String; 
System.ComponentModel.DisplayNameAttribute("Data Source")
System.ComponentModel.DescriptionAttribute("The name and file location of the database to open.")
System.ComponentModel.RefreshPropertiesAttribute(RefreshProperties.All)
System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.FileNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
public function get,set DataSource : System.String
[System.ComponentModel.DisplayName("Data Source")]
[System.ComponentModel.Description("The name and file location of the database to open.")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.FileNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public: __property System.string* get_DataSource();
public: __property void set_DataSource( 
   System.string* value
);
[System.ComponentModel.DisplayName("Data Source")]
[System.ComponentModel.Description("The name and file location of the database to open.")]
[System.ComponentModel.RefreshProperties(RefreshProperties.All)]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.FileNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public:
property System.String^ DataSource {
   System.String^ get();
   void set (    System.String^ value);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also