It is a sequence container that can add, remove and access instantly by index.
DSSLocales is primarily backed by ObjectReferences which is further backed by vector structure. As a result it has all the characteristics that a vector container has.
DSSLocales keeps record of the primary locale of this collection.
Public Member Functions | |
| HRESULT | _NewEnum ([out, retval] IUnknown oppNewEnum) |
| The usual VB enumerator method. | |
| HRESULT | Add ([in] IDSSLocale *ipLocale) |
| Add an item into the collection. | |
| HRESULT | Clear () |
| Clear all the elements in this collection and set the primary locale to null. | |
| HRESULT | Count ([out, retval] Int32 *opCount) |
| The number of members in the collection. | |
| HRESULT | IsSupported ([in] Int32 iLocale,[out, retval] VARIANT_BOOL *opIsSupported) |
| Find out if the given locale is in the cached set of metadata or data locales supported by the project that this object source is serving. | |
| HRESULT | Item ([in] VARIANT *ipIndex,[out, retval] IDSSLocale oppLocale) |
| Obtain a particular member of the collection. | |
| HRESULT | MapToSupported ([in] Int32 iLocale,[out, retval] Int32 *opLocale) |
| Map an arbitrary locale id to a metadata or data locale that is supported by the project that this source is serving. | |
| HRESULT | Primary ([in] IDSSLocale *ipLocale) |
| Set the primary locale of this locale collection. | |
| HRESULT | Primary ([out, retval] IDSSLocale oppLocale) |
| Return the primary locale of this locale collection. | |
| HRESULT | Remove ([in] VARIANT *ipIndex) |
| Remove a locale from the collection by index. | |
|
|
The usual VB enumerator method. 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 contents of the collection.
|
|
|
Add an item into the collection. If the locale already exists in the collection, do nothing. If this collection doesn't have a primary locale at this moment, this new item will be set as the primary locale.
|
|
|
Clear all the elements in this collection and set the primary locale to null.
|
|
|
The number of members in the collection. The Count method returns the number of members in the collection.
|
|
||||||||||||
|
Find out if the given locale is in the cached set of metadata or data locales supported by the project that this object source is serving.
|
|
||||||||||||
|
Obtain a particular member of the collection. The Item number returns a member in the collection. An index number for the member must be provided.
|
|
||||||||||||
|
Map an arbitrary locale id to a metadata or data locale that is supported by the project that this source is serving. The mapping is performed using the cached set of locales.
|
|
|
Set the primary locale of this locale collection.
|
|
|
Return the primary locale of this locale collection.
|
|
|
Remove a locale from the collection by index. The primary locale will be set to null if the locale to be removed is the last element in this collection. The first elment in this collection will be the primary locale if the current primary locale is to be removed.
|