AdoDotNetSchemaReader 建構函式 (DbDataReader, DbCommand)
初始化 AdoDotNetSchemaReader 類別的新執行個體。資料讀取器物件的,而且資料命令物件。
命名空間: Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Sub New ( _
reader As DbDataReader, _
command As DbCommand _
)
public AdoDotNetSchemaReader(
DbDataReader reader,
DbCommand command
)
public:
AdoDotNetSchemaReader(
DbDataReader^ reader,
DbCommand^ command
)
new :
reader:DbDataReader *
command:DbCommand -> AdoDotNetSchemaReader
public function AdoDotNetSchemaReader(
reader : DbDataReader,
command : DbCommand
)
參數
reader
類型:DbDataReader包含結果集和結構描述的 DbDataReader 物件。
command
類型:DbCommand封裝命令的 DbCommand 物件執行物件資料來源,讓 Terminate 方法實作會在命令的 CancelAsync 。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。