You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uses an OLE DB enumerator object, which exposes the [ISourcesRowset](https://msdn.microsoft.com/en-us/library/ms715969.aspx) interface to return a rowset describing all data sources and enumerators.
18
+
Uses an OLE DB enumerator object, which exposes the [ISourcesRowset](https://msdn.microsoft.com/library/ms715969.aspx) interface to return a rowset describing all data sources and enumerators.
17
19
18
20
## Syntax
19
21
20
22
```cpp
21
23
classCEnumerator :
22
24
public CAccessorRowset< CAccessor <CEnumeratorAccessor >>
23
25
```
26
+
27
+
## Requirements
28
+
**Header:**atldbcli.h
24
29
25
30
## Members
26
31
27
32
### Methods
28
33
29
34
|||
30
35
|-|-|
31
-
|[Find](../../data/oledb/cenumerator-find.md)|Searches through available providers (data sources) looking for one with the specified name.|
32
-
|[GetMoniker](../../data/oledb/cenumerator-getmoniker.md)|Retrieves the `IMoniker` interface for the current record.|
33
-
|[Open](../../data/oledb/cenumerator-open.md)|Opens the enumerator.|
36
+
|[Find](#find)|Searches through available providers (data sources) looking for one with the specified name.|
37
+
|[GetMoniker](#getmoniker)|Retrieves the `IMoniker` interface for the current record.|
38
+
|[Open](#open)|Opens the enumerator.|
34
39
35
40
## Remarks
36
-
You can retrieve the **ISourcesRowset** data indirectly from this class.
41
+
You can retrieve the `ISourcesRowset` data indirectly from this class.
42
+
43
+
## <a name="find"></a> CEnumerator::Find
44
+
Looks for a specified name among available providers.
37
45
38
-
## Requirements
39
-
**Header:**atldbcli.h
46
+
### Syntax
47
+
48
+
```cpp
49
+
bool Find(TCHAR* szSearchName) throw();
50
+
```
51
+
52
+
#### Parameters
53
+
*szSearchName*
54
+
[in] The name to search for.
55
+
56
+
### Return Value
57
+
**true** if the name was found. Otherwise, **false**.
58
+
59
+
### Remarks
60
+
This name maps to the `SOURCES_NAME` member of the [ISourcesRowset](https://msdn.microsoft.com/library/ms715969.aspx) interface.
[out] The moniker parsed from the display name ([CEnumeratorAccessor::m_szParseName](../../data/oledb/cenumeratoraccessor-m-szparsename.md)) of the current row.
78
+
79
+
*lpszDisplayName*
80
+
[in] The display name to parse.
81
+
82
+
### Return Value
83
+
A standard HRESULT.
84
+
85
+
## <a name="open"></a> CEnumerator::Open
86
+
Binds the moniker for the enumerator, if one is specified, then retrieves the rowset for the enumerator by calling [ISourcesRowset::GetSourcesRowset](https://msdn.microsoft.com/library/ms711200.aspx).
0 commit comments