FieldCollection Class
Represents a collection of Fields in a WorkItem object.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.WorkItemTracking.Common.ReadOnlyList
Microsoft.TeamFoundation.WorkItemTracking.Client.FieldCollection
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
声明
Public NotInheritable Class FieldCollection _
Inherits ReadOnlyList
public sealed class FieldCollection : ReadOnlyList
public ref class FieldCollection sealed : public ReadOnlyList
[<Sealed>]
type FieldCollection =
class
inherit ReadOnlyList
end
public final class FieldCollection extends ReadOnlyList
The FieldCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of Field objects in this collection. (Overrides ReadOnlyList.Count.) | |
IsFixedSize | Obsolete. (Inherited from ReadOnlyList.) | |
IsReadOnly | Obsolete. (Inherited from ReadOnlyList.) | |
IsSynchronized | Obsolete. (Inherited from ReadOnlyList.) | |
Item[Int32] | Gets the Field in this collection at the specified index. | |
Item[String] | Gets the Field in this collection that has the specified name or reference name. | |
Item[CoreField] | Gets the Field in this collection that is the specified CoreField member. | |
SyncRoot | Obsolete. (Inherited from ReadOnlyList.) |
Top
Methods
Name | Description | |
---|---|---|
Contains(Int32) | Checks whether this collection contains the Field that is specified by its ID. | |
Contains(String) | Checks whether this collection contains the Field that is specified by its name or reference name. | |
Contains(Field) | Checks whether this collection contains the specified Field. | |
CopyTo | Obsolete. (Inherited from ReadOnlyList.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetById | Gets the Field in this collection that has the specified ID. | |
GetEnumerator | (Inherited from ReadOnlyList.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetItem | (Inherited from ReadOnlyList.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Gets the index of the specified Field. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetById | Gets the Field in this collection that has the specified ID. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from ReadOnlyList.) | |
IList.Clear | (Inherited from ReadOnlyList.) | |
IList.Contains | (Inherited from ReadOnlyList.) | |
ICollection.CopyTo | (Inherited from ReadOnlyList.) | |
ICollection.Count | (Inherited from ReadOnlyList.) | |
IList.IndexOf | (Inherited from ReadOnlyList.) | |
IList.Insert | (Inherited from ReadOnlyList.) | |
IList.IsFixedSize | (Inherited from ReadOnlyList.) | |
IList.IsReadOnly | (Inherited from ReadOnlyList.) | |
ICollection.IsSynchronized | (Inherited from ReadOnlyList.) | |
IList.Item | (Inherited from ReadOnlyList.) | |
IList.Remove | (Inherited from ReadOnlyList.) | |
IList.RemoveAt | (Inherited from ReadOnlyList.) | |
ICollection.SyncRoot | (Inherited from ReadOnlyList.) |
Top
Remarks
A FieldCollection object is returned by the WorkItem.Fields property.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.