当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Supports 方法
The Supports method returns a boolean value that defines whether or not a Recordset object supports a specific type of functionality.
Supports方法的作用是:返回一个逻辑值,用于指示是否需要让Recordset[记录集]对象支持指定的函数功能类型。
Note: This method returns true if the specified feature is supported, false if not.
注意:如果支持指定的类型则返回True;如果不支持则返回False。
objRecordset.Supports(cursoroptions) |
Parameter参数 | Description描述 |
---|---|
cursoroptions | Required. One or more CursorOptionEnum values that specifies what functionality this method should test for 必要参数。指定一个或多个CursorOptionEnum值,该值是用于指明哪些功能需要进行测试 |
Constant常量 | Value值 | Description描述 |
---|---|---|
adHoldRecords | 0x100 | Retrieves more records or changes the next position without committing all pending changes 获取另外的记录或改变获取记录指针的位置,但不提交未确定的改变 |
adMovePrevious | 0x200 | Supports the MoveFirst and MovePrevious methods, and Move or GetRows methods 调用GetRows,Move,MoveFirst和MovePrevious方法 |
adBookmark | 0x2000 | Supports the Bookmark property 调用书签属性 |
adApproxPosition | 0x4000 | Supports the AbsolutePosition and AbsolutePage properties 调用AbsolutePosition和AbsolutePage属性 |
adUpdateBatch | 0x10000 | Supports UpdateBatch and CancelBatch methods 调用UpdateBatch和CancelBatch方法 |
adResync | 0x20000 | Supports the Resync method 调用Resync方法 |
adNotify | 0x40000 | Indicates that the data provider supports notifications (which determines whether Recordset events are supported) 指示数据提供对象调用notifications(告示[用于指示是否调用Recordset[记录集]事件]) |
adFind | 0x80000 | Supports the Find method 调用Find方法 |
adIndex | 0x100000 | Supports the Index property 调用Index属性 |
adSeek | 0x200000 | Supports the Seek method 调用Seek 方法 |
adAddNew | 0x1000400 | Supports the AddNew method 调用AddNew方法 |
adDelete | 0x1000800 | Supports the Delete method 调用Delete方法 |
adUpdate | 0x1008000 | Supports the Update method 调用Update方法 |