ADODC.RecordSource 屬性

定義

取得或設定會傳回 Recordset 的陳述式或查詢。

public:
 property System::String ^ RecordSource { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCRecordSource")]
public string RecordSource { get; set; }
[<Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCRecordSource")>]
member this.RecordSource : string with get, set
Public Property RecordSource As String

屬性值

String,其中包含陳述式或查詢。

屬性

備註

RecordSource包含資料庫數據表的名稱,以及使用適用於數據源的語法的有效 SQL 字串。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於