AllowedValuesCollection 類別
表示 Field的有效值的清單。
繼承階層架構
System.Object
Microsoft.TeamFoundation.WorkItemTracking.Common.ReadOnlyList
Microsoft.TeamFoundation.WorkItemTracking.Client.ValuesCollection
Microsoft.TeamFoundation.WorkItemTracking.Client.AllowedValuesCollection
命名空間: Microsoft.TeamFoundation.WorkItemTracking.Client
組件: Microsoft.TeamFoundation.WorkItemTracking.Client (在 Microsoft.TeamFoundation.WorkItemTracking.Client.dll 中)
語法
'宣告
Public NotInheritable Class AllowedValuesCollection _
Inherits ValuesCollection
public sealed class AllowedValuesCollection : ValuesCollection
AllowedValuesCollection 型別會公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
![]() |
Count | 取得這個集合中的物件數目。 (繼承自 ValuesCollection)。 |
![]() |
IsFixedSize | 已過時。 (繼承自 ReadOnlyList)。 |
![]() |
IsReadOnly | 已過時。 (繼承自 ReadOnlyList)。 |
![]() |
IsSynchronized | 已過時。 (繼承自 ReadOnlyList)。 |
![]() |
Item | 取得值在這個集合中指定索引處的。 (繼承自 ValuesCollection)。 |
![]() |
SyncRoot | 已過時。 (繼承自 ReadOnlyList)。 |
回頁首
方法
名稱 | 說明 | |
---|---|---|
![]() |
Contains | 檢查指定的是否存在於這個集合。 (繼承自 ValuesCollection)。 |
![]() |
CopyTo | 已過時。 (繼承自 ReadOnlyList)。 |
![]() |
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 |
![]() |
GetEnumerator | (繼承自 ReadOnlyList)。 |
![]() |
GetHashCode | 做為特定型別的雜湊函式。 (繼承自 Object)。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
IndexOf | 取得指定的索引這個集合中。 (繼承自 ValuesCollection)。 |
![]() |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
明確介面實作
名稱 | 說明 | |
---|---|---|
![]() ![]() |
IList.Add | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.Clear | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.Contains | (繼承自 ValuesCollection)。 |
![]() ![]() |
ICollection.CopyTo | (繼承自 ReadOnlyList)。 |
![]() ![]() |
ICollection.Count | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.IndexOf | (繼承自 ValuesCollection)。 |
![]() ![]() |
IList.Insert | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.IsFixedSize | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.IsReadOnly | (繼承自 ReadOnlyList)。 |
![]() ![]() |
ICollection.IsSynchronized | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.Item | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.Remove | (繼承自 ReadOnlyList)。 |
![]() ![]() |
IList.RemoveAt | (繼承自 ReadOnlyList)。 |
![]() ![]() |
ICollection.SyncRoot | (繼承自 ReadOnlyList)。 |
回頁首
備註
Field.AllowedValues 和 FieldDefinition.AllowedValues 屬性儲存 AllowedValuesCollection 物件。 其 FieldDefinition取決於欄位的有效值的清單。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。