DataSourceCollection 類別

定義

表示 DataSource 物件的集合。 此類別無法獲得繼承。

[System.Runtime.InteropServices.Guid("DB5C187C-4810-4318-B008-6607DFAD2A97")]
public sealed class DataSourceCollection : Microsoft.AnalysisServices.MajorObjectCollection
[<System.Runtime.InteropServices.Guid("DB5C187C-4810-4318-B008-6607DFAD2A97")>]
type DataSourceCollection = class
    inherit MajorObjectCollection
Public NotInheritable Class DataSourceCollection
Inherits MajorObjectCollection
繼承
屬性

屬性

Count

取得位於 ModelComponentCollection 中的 ModelComponent 物件數量。

(繼承來源 ModelComponentCollection)
DemandLoadingService

取得集合的需求載入服務。

(繼承來源 ModelComponentCollection)
IsFixedSize

取得值,指出 ModelComponentCollection 是否具有固定的大小。

(繼承來源 ModelComponentCollection)
IsReadOnly

取得值,指出 ModelComponentCollection 是否為唯讀。

(繼承來源 ModelComponentCollection)
IsSynchronized

取得值,指出是否同步存取 ModelComponentCollection (安全執行緒)。

(繼承來源 ModelComponentCollection)
Item[Int32]

從集合取得位於指定索引位置的 DataSource

Item[String]

從集合取得具有指定識別碼的 DataSource

ItemsType

取得 ModelComponentCollection 中可包含的物件類型。

(繼承來源 ModelComponentCollection)
Parent

取得 IModelComponentCollection 的父 IModelComponent。

(繼承來源 ModelComponentCollection)
Preloadable

取得值,該值指出是否可以預載集合。

(繼承來源 ModelComponentCollection)
SyncRoot

取得可用來同步存取 ModelComponentCollection 的物件。

(繼承來源 ModelComponentCollection)

方法

Add()

使用產生的唯一名稱和識別碼,建立新的 DataSource,然後將它新增至集合結尾,並傳回新建立的 DataSource。

Add(DataSource)

將指定的 DataSource 新增至集合的結尾。

Add(ModelComponent)

將 ModelComponent 物件新增至集合。

(繼承來源 MajorObjectCollection)
Add(ModelComponent, Boolean)

將 ModelComponent 物件新增至 ModelComponentCollection。

(繼承來源 ModelComponentCollection)
Add(String)

使用指定的名稱,建立新的 DataSource,然後將它新增至集合結尾,並傳回新建立的 DataSource。

Add(String, IModelComponent)

將 IModelComponent 物件新增至 ModelComponentCollection。

(繼承來源 ModelComponentCollection)
Add(String, IModelComponent, Boolean)

將 IModelComponent 物件新增至 ModelComponentCollection。

(繼承來源 ModelComponentCollection)
Add(String, String)

使用指定的名稱和識別碼,建立新的 DataSource 物件,然後將它新增至集合結尾,並傳回新建立的 DataSource。

AddNew(String)

使用指定的索引鍵建立 DataSource,然後將它新增至集合結尾。

AddNew(String, String)

使用指定的名稱和索引鍵,建立 DataSource 然後將它新增至集合結尾。

AddNew(String, String, Type)

將新的 IModelComponent 新增至集合。

(繼承來源 ModelComponentCollection)
AddNew(String, Type)

將新的 IModelComponent 新增至集合。

(繼承來源 ModelComponentCollection)
CanAdd(ModelComponent, String)

指出指定的 ModelComponent 是否可以新增至集合。

(繼承來源 NamedComponentCollection)
ChangeKey(String, String)

對集合變更指定的索引鍵。

(繼承來源 ModelComponentCollection)
Clear()

從 ModelComponentCollection 中移除所有項目。

(繼承來源 ModelComponentCollection)
Contains(DataSource)

指出集合是否包含指定的 DataSource

Contains(IModelComponent)

判斷指定的項目是否在集合中。

(繼承來源 ModelComponentCollection)
Contains(String)

指出集合是否包含具有指定之識別碼的 DataSource

ContainsName(String)

指出集合是否包含具有指定名稱的元件。

(繼承來源 NamedComponentCollection)
CopyTo(Array, Int32)

從目標陣列的指定索引處開始,將整個 ModelComponentCollection 複製到一維陣列。

(繼承來源 ModelComponentCollection)
EnsureLoaded()

確認集合已載入。

(繼承來源 ModelComponentCollection)
Find(String)

從集合取得具有指定識別碼的 DataSource

FindByName(String)

從集合取得具有指定名稱的 DataSource

GetByName(String)

從集合取得具有指定名稱的 DataSource

GetEnumerator()

傳回可逐一查看 ModelComponentCollection 的列舉值。

(繼承來源 ModelComponentCollection)
GetItem(String, Boolean, String)

取得指定之元件的參考。

(繼承來源 ModelComponentCollection)
GetNewID()

針對集合中的元件,取得新的唯一識別碼。

(繼承來源 NamedComponentCollection)
GetNewID(String)

針對集合中的元件,取得以指定名稱前置詞開頭的新唯一識別碼的值。

(繼承來源 NamedComponentCollection)
GetNewName()

針對集合中的元件,取得新的唯一名稱。

(繼承來源 NamedComponentCollection)
GetNewName(String)

針對集合中的元件,取得以指定名稱前置詞開頭的新唯一名稱。

(繼承來源 NamedComponentCollection)
IndexOf(DataSource)

搜尋指定的 DataSource,並傳回其在集合中以零起始的索引。

IndexOf(IModelComponent)

搜尋指定的項目,並傳回在集合內其以零為基底的索引。

(繼承來源 ModelComponentCollection)
IndexOf(String)

搜尋具有指定識別碼的 DataSource,並傳回其在集合中以零起始的索引。

IndexOfName(String)

取得集合中依據名稱所識別之 NamedComponent 的索引。

(繼承來源 NamedComponentCollection)
Insert(IModelComponent, String, Int32)

將 IModelComponent 插入 ModelComponentCollection。

(繼承來源 ModelComponentCollection)
Insert(IModelComponent, String, Int32, Boolean)

將 IModelComponent 插入 ModelComponentCollection。

(繼承來源 ModelComponentCollection)
Insert(Int32)

使用產生的唯一名稱和識別碼,建立新的 DataSource 物件,然後將它插入集合中指定的索引處,並傳回新建立的 DataSource。

Insert(Int32, DataSource)

將指定的 DataSource 插入集合中指定的索引位置。

Insert(Int32, ModelComponent)

將 ModelComponent 物件插入集合中指定的索引位置。

(繼承來源 MajorObjectCollection)
Insert(Int32, String)

使用指定的名稱建立新 DataSource 物件,然後將它插入集合中指定的索引處,並傳回新建立的 DataSource。

Insert(Int32, String, String)

使用指定的名稱和識別碼,建立新的 DataSource 物件,然後將它插入集合中指定的索引處,並傳回新建立的 DataSource。

IsValidID(String)

判斷提供的識別碼對於集合中的元件是否有效。

(繼承來源 NamedComponentCollection)
IsValidID(String, String)

判斷提供的識別碼對於集合中的元件是否有效。

(繼承來源 NamedComponentCollection)
IsValidID(String, Type, String)

判斷提供的識別碼對於集合中的元件是否有效。

(繼承來源 NamedComponentCollection)
IsValidName(String)

判斷提供的名稱對於集合中的元件是否有效。

(繼承來源 NamedComponentCollection)
IsValidName(String, String)

判斷提供的名稱對於集合中的元件是否有效。

(繼承來源 NamedComponentCollection)
IsValidName(String, Type, String)

判斷提供的名稱對於集合中的元件是否有效。

(繼承來源 NamedComponentCollection)
Move(DataSource, Int32)

將指定的 DataSource 移動到集合中的新位置。

Move(Int32, Int32)

將集合中的 DataSource 從目前位置移動到新的位置。

Move(String, Int32)

將具有指定識別碼的 DataSource 移動到集合中的新位置。

Remove(DataSource)

從集合移除指定的 DataSource

Remove(DataSource, Boolean)

從集合移除指定的 DataSource

Remove(IModelComponent)

從集合中移除指定的 IModelComponent。

(繼承來源 ModelComponentCollection)
Remove(String)

從集合中移除具有指定之識別碼的 DataSource

Remove(String, Boolean)

從集合中移除具有指定之識別碼的 DataSource

RemoveAt(Int32)

從 ModelComponentCollection 中移除位於指定索引位置的 IModelComponent。

(繼承來源 ModelComponentCollection)
RemoveAt(Int32, Boolean)

從 ModelComponentCollection 中移除位於指定索引位置的 IModelComponent。

(繼承來源 ModelComponentCollection)

事件

CollectionChanged

當集合變更時發生。

(繼承來源 ModelComponentCollection)
CollectionChanging

當集合正在變更時發生。

(繼承來源 ModelComponentCollection)

明確介面實作

IList.Add(Object)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.Clear()

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.Contains(Object)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.IndexOf(Object)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.Insert(Int32, Object)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.Item[Int32]

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.Remove(Object)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IList.RemoveAt(Int32)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IModelComponentCollection.Contains(IModelComponent)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IModelComponentCollection.Remove(IModelComponent)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IModelComponentCollection.Remove(IModelComponent, Boolean)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IOnDemandLoadableCollection.BlockOnDemandLoad(Boolean)

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)
IOnDemandLoadableCollection.Loaded

表示 DataSource 物件的集合。 此類別無法獲得繼承。

(繼承來源 ModelComponentCollection)

適用於