Session 物件介面
下表顯示 OLE DB 為會話物件定義的強制和選擇性介面。
介面 | 是必要的嗎? | 由 OLE DB 範本實作? |
---|---|---|
IGetDataSource | 必要 | Yes |
IOpenRowset | 必要 | Yes |
ISessionProperties | 必要 | Yes |
IAlterIndex | 選擇性 | No |
IAlterTable | 選擇性 | No |
IBindResource | 選擇性 | No |
ICreateRow | 選擇性 | No |
IDBCreateCommand | 選擇性 | Yes |
IDBSchemaRowset | 選擇性 | Yes |
IIndexDefinition | 選擇性 | No |
ISupportErrorInfo | 選擇性 | Yes |
ITableCreation | 選擇性 | No |
ITableDefinition | 選擇性 | No |
ITableDefinitionWithConstraints | 選擇性 | No |
ITransaction | 選擇性 | No |
ITransactionJoin | 選擇性 | No |
ITransactionLocal | 選擇性 | No |
ITransactionObject | 選擇性 | No |
會話物件會建立數據列集物件。 如果提供者支援命令,會話也會建立命令物件(CCommand
實作 OLE DB TCommand
)。 命令物件會實作 介面, ICommand
並使用 ICommand::Execute
方法在數據列集上執行命令,如下圖所示。