Members
readonly dataSourceAdded : Event
      将数据源添加到集合中时引发的事件。向事件处理程序传递添加的数据源。
     
     readonly dataSourceMoved : Event
      当数据源更改集合中的位置时引发的事件。事件处理程序被传递给数据源被移动的对象,在移动之后的新索引以及在移动之前的旧索引。
     
     readonly dataSourceRemoved : Event
      从集合中删除数据源时引发的事件。向事件处理程序传递已删除的数据源。
     
     
      获取此集合中的数据源数量。
     
     Methods
add (dataSource) → Promise.< DataSource >
      将数据源添加到集合中。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | Promise.< DataSource > | 数据源或对数据源的承诺以添加到集合中。 通过承诺时,实际上不会添加数据源 直到承诺成功解决为止。 | 
Returns:
   将数据源添加到集合后便会解决的Promise。
  
 
     
      检查集合是否包含给定的数据源。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | 要检查的数据源。 | 
Returns:
   如果集合包含数据源,则为true,否则为false。
  
 
     
      销毁此集合中所有数据源所拥有的资源。明确销毁此对象允许确定性地释放WebGL资源,而不是依赖垃圾集电极。一旦这个物体被销毁,就不应该使用它。调用除
      
     
       isDestroyed
      
      将导致
      
       
        DeveloperError
       
      
      异常。因此,如示例中所述,将返回值(
      
       undefined
      
      )分配给对象。
     Throws:
- 
 
  DeveloperError :此对象已销毁,即调用destroy()。
Example:
dataSourceCollection = dataSourceCollection && dataSourceCollection.destroy();See:
get (index) → DataSource
      从集合中按索引获取数据源。
     
     | Name | Type | Description | 
|---|---|---|
| 
          index
          | Number | 要检索的索引。 | 
Returns:
   指定索引处的数据源。
  
 
     getByName (name) → Array.< DataSource >
      从集合中按名称获取数据源。
     
     | Name | Type | Description | 
|---|---|---|
| 
          name
          | String | 要检索的名称。 | 
Returns:
   与提供的名称匹配的所有数据源的列表。
  
 
     
      确定集合中给定数据源的索引。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | 查找索引的数据源。 | 
Returns:
   集合中数据源的索引;如果集合中不存在数据源,则为-1。
  
 
     
      如果此对象已销毁,则返回true;否则返回false。否则为假。如果该对象被破坏,则不应使用。调用除
      
     
       isDestroyed
      
      将导致
      
       
        DeveloperError
       
      
      异常。
     Returns:
   如果此对象被破坏,则为true;否则为false。否则为假。
  
 
     
     
     
      将数据源降低到集合中的一个位置。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | 要移动的数据源。 | 
Throws:
- 
 
  DeveloperError :dataSource不在此集合中。
- 
 
  DeveloperError :此对象已销毁,即调用destroy()。
      将数据源降低到集合的底部。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | 要移动的数据源。 | 
Throws:
- 
 
  DeveloperError :dataSource不在此集合中。
- 
 
  DeveloperError :此对象已销毁,即调用destroy()。
      将数据源提升到集合中的一个位置。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | 要移动的数据源。 | 
Throws:
- 
 
  DeveloperError :dataSource不在此集合中。
- 
 
  DeveloperError :此对象已销毁,即调用destroy()。
      将数据源提升到集合的顶部。
     
     | Name | Type | Description | 
|---|---|---|
| 
          dataSource
          | DataSource | 要移动的数据源。 | 
Throws:
- 
 
  DeveloperError :dataSource不在此集合中。
- 
 
  DeveloperError :此对象已销毁,即调用destroy()。
      从此集合中删除数据源(如果存在)。
     
     | Name | Type | Default | Description | 
|---|---|---|---|
| 
          dataSource
          | DataSource | 要删除的数据源。 | |
| 
          destroy
          | Boolean | 
          false
          | 可选 除删除数据源外是否还要销毁数据源。 | 
Returns:
   如果数据源在集合中并已删除,则为true,                   如果数据源不在集合中,则返回false。
  
 
     
      从此集合中删除所有数据源。
     
     | Name | Type | Default | Description | 
|---|---|---|---|
| 
          destroy
          | Boolean | 
          false
          | 可选 除删除数据源外是否还要销毁数据源。 | 
