It enumerates all available MicroStrategy data sources so that the client can select DSS sources to use.
Public Member Functions | |
| HRESULT | _NewEnum ([out, retval] IUnknown pp_NewEnum) |
| The standard property used to return the objects in a collection. | |
| HRESULT | Add ([in] BSTR DataSourceName,[out, retval] IDSSDataSource ppDataSource) |
| Create a new data source and put it under this enumerator. | |
| HRESULT | AddDataSource ([in] IDSSDataSource *pDataSource,[in, optional] VARIANT_BOOL OverWritten) |
| Add a data source into this enumerator. | |
| HRESULT | Count ([out, retval] Int32 *pCount) |
| Get the number of MicroStrategy data sources under this enumerator. | |
| HRESULT | Item ([in] VARIANT *Index,[out, retval] IDSSDataSource ppDataSource) |
| Get the selected IDSSDataSource interface. | |
| HRESULT | ItemByProjectName ([in] BSTR ProjectName,[out, optional] Int32 *pNumberOfDataSources,[out, retval] IDSSDataSource ppDataSource) |
| Returns the project data source that points to a required project. | |
| HRESULT | LoadFromRegistry () |
| Read registry and create data sources. | |
| HRESULT | RemoveDataSource ([in] VARIANT *pIndex) |
| Remove a data source. | |
| HRESULT | Reset () |
| Reset this enumerator by releasing all the data sources under it. | |
| HRESULT | SaveToRegistry ([in, optional] VARIANT_BOOL OverWritten) |
| Save the properties of all the data source under this enumerator into the registry. | |
|
|
The standard property used to return the objects in a collection. This is the standard property used to return the objects in a collection. It returns an enumerator object. Calling methods on the enumerator object retrieves the IDSSDataSource interfaces under this enumerator.
|
|
||||||||||||
|
Create a new data source and put it under this enumerator. This method creates and returns a new data source if the Name is not used by any data source under this enumerator. If the Name is NULL or empty string or is used by one data source under this enumerator, an error is reported.
|
|
||||||||||||
|
Add a data source into this enumerator. This method adds a data source into this enumerator. The added data source should have a name before it can be added.
|
|
|
Get the number of MicroStrategy data sources under this enumerator. This method returns the number of DSSDataSource object in this enumerator.
|
|
||||||||||||
|
Get the selected IDSSDataSource interface. This method returns the IDSSDataSource interface with the specified name or index in this enumerator. Index values can be short, integer, or long (all starting with 1) or the name of the data source. If the Index is invalid or out of range or the data source is not found by the given name, an error is reported.
|
|
||||||||||||||||
|
Returns the project data source that points to a required project. This method returns one of the project data source that points to the required project and the number of the project data sources that points to the required project.
|
|
|
Read registry and create data sources. This method resets the enumerator, reads the information from the registry, and creates all the data sources that are under this enumerator.
|
|
|
Remove a data source. This method removes the data source from the enumerator if the data source is not initialized. If the removed data source contains an enumerator, that enumerator and all the data source under that enumerator is also removed.
|
|
|
Reset this enumerator by releasing all the data sources under it. This method resets the enumerator by releasing all the data sources under it.
|
|
|
Save the properties of all the data source under this enumerator into the registry. This method saves the properties of all the data sources under this enumerator into the registry. If OverWritten is true, the existing ones in the registry are replaced.
|