WebTestBaseCollection<T> 類別
用於儲存各種 Web 效能測試的抽象基底類別。
繼承階層架構
Object
Collection<T>
Microsoft.VisualStudio.TestTools.WebTesting.WebTestBaseCollection<T>
其他...
命名空間: Microsoft.VisualStudio.TestTools.WebTesting
組件: Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
語法
'宣告
<SerializableAttribute> _
Public MustInherit Class WebTestBaseCollection(Of T) _
Inherits Collection(Of T)
[SerializableAttribute]
public abstract class WebTestBaseCollection<T> : Collection<T>
[SerializableAttribute]
generic<typename T>
public ref class WebTestBaseCollection abstract : public Collection<T>
[<AbstractClass>]
[<SerializableAttribute>]
type WebTestBaseCollection<'T> =
class
inherit Collection<'T>
end
JScript 不支援泛型型別或方法。
類型參數
- T
WebTestBaseCollection<T> 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
WebTestBaseCollection<T> | 初始化 WebTestBaseCollection<T> 類別的新執行個體。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
Count | 取得 Collection 中實際包含的項目數目。 (繼承自 Collection<T>)。 | |
Item | 取得或設定指定之索引處的項目。 (繼承自 Collection<T>)。 | |
Items | 取得 Collection 周圍的 IList 包裝函式。 (繼承自 Collection<T>)。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
Add | 將物件加入至 Collection 的結尾。 (繼承自 Collection<T>)。 | |
AddRange | 將特定集合的元素加入至 WebTestBaseCollection<T> 的結尾。 | |
Clear | 將所有項目從 Collection 移除。 (繼承自 Collection<T>)。 | |
ClearItems | 將所有項目從 Collection 移除。 (繼承自 Collection<T>)。 | |
Contains | 判斷某項目是否在 Collection 中。 (繼承自 Collection<T>)。 | |
CopyTo | 從目標陣列之指定的索引開始,將整個 Collection 複製到相容的一維 Array。 (繼承自 Collection<T>)。 | |
Equals | 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。 | |
Finalize | 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。 | |
GetEnumerator | 傳回在 Collection 中逐一查看的列舉值。 (繼承自 Collection<T>)。 | |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 | |
GetType | 取得目前實例 Type 的屬性。 (繼承自 Object)。 | |
IndexOf | 搜尋指定的物件,並傳回整個 Collection 中第一個相符項目之以零起始的索引。 (繼承自 Collection<T>)。 | |
Insert | 將項目插入 Collection 中指定的索引處。 (繼承自 Collection<T>)。 | |
InsertItem | 將項目插入 Collection 中指定的索引處。 (繼承自 Collection<T>)。 | |
MemberwiseClone | 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。 | |
Remove | 從 Collection 移除特定物件的第一個相符項目。 (繼承自 Collection<T>)。 | |
RemoveAt | 移除 Collection 中指定之索引處的項目。 (繼承自 Collection<T>)。 | |
RemoveItem | 移除 Collection 中指定之索引處的項目。 (繼承自 Collection<T>)。 | |
SetItem | 取代指定之索引處的項目。 (繼承自 Collection<T>)。 | |
ToString | 傳回代表目前物件的字串。 (繼承自 Object)。 |
回頁首
明確介面實作
名稱 | 描述 | |
---|---|---|
System#Collections#IList#Add | 將項目加入至 IList。 (繼承自 Collection<T>)。 | |
System#Collections#IList#Contains | 判斷 IList 是否包含特定值。 (繼承自 Collection<T>)。 | |
System#Collections#ICollection#CopyTo | 從特定的 Array 索引開始,複製 ICollection 項目至 Array。 (繼承自 Collection<T>)。 | |
System#Collections#IEnumerable#GetEnumerator | 傳回會逐一查看集合的列舉程式。 (繼承自 Collection<T>)。 | |
System#Collections#IList#IndexOf | 判斷 IList 中特定項目的索引。 (繼承自 Collection<T>)。 | |
System#Collections#IList#Insert | 將項目插入 IList 中指定的索引處。 (繼承自 Collection<T>)。 | |
System#Collections#IList#IsFixedSize | 取得值,指出 IList 是否有固定的大小。 (繼承自 Collection<T>)。 | |
System#Collections#Generic#ICollection{T}#IsReadOnly | 取得值,指出 ICollection 是否唯讀。 (繼承自 Collection<T>)。 | |
System#Collections#IList#IsReadOnly | 取得值,指出 IList 是否唯讀。 (繼承自 Collection<T>)。 | |
System#Collections#ICollection#IsSynchronized | 取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。 (繼承自 Collection<T>)。 | |
System#Collections#IList#Item | 取得或設定指定之索引處的項目。 (繼承自 Collection<T>)。 | |
System#Collections#IList#Remove | 從 IList 移除特定物件之第一個符合的元素。 (繼承自 Collection<T>)。 | |
System#Collections#ICollection#SyncRoot | 取得可用來同步存取 ICollection 的物件。 (繼承自 Collection<T>)。 |
回頁首
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。
請參閱
參考
Microsoft.VisualStudio.TestTools.WebTesting 命名空間
繼承階層架構
Object
Collection<T>
Microsoft.VisualStudio.TestTools.WebTesting.WebTestBaseCollection<T>
Microsoft.VisualStudio.TestTools.WebTesting.ConditionalRuleReferenceCollection
Microsoft.VisualStudio.TestTools.WebTesting.ContextParameterCollection
Microsoft.VisualStudio.TestTools.WebTesting.DataSourceCollection
Microsoft.VisualStudio.TestTools.WebTesting.DataSourceTableCollection
Microsoft.VisualStudio.TestTools.WebTesting.ExtractionRuleReferenceCollection
Microsoft.VisualStudio.TestTools.WebTesting.FormPostParameterCollection
Microsoft.VisualStudio.TestTools.WebTesting.PropertyCollection
Microsoft.VisualStudio.TestTools.WebTesting.QueryStringParameterCollection
Microsoft.VisualStudio.TestTools.WebTesting.ValidationRuleReferenceCollection
Microsoft.VisualStudio.TestTools.WebTesting.WebTestItemCollection
Microsoft.VisualStudio.TestTools.WebTesting.WebTestPluginReferenceCollection
Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestCollection
Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestHeaderCollection
Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestPluginReferenceCollection