Поделиться через


WorkItemLinkTypeCollection Class

Represents a collection of WorkItemLinkType objects.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemLinkTypeCollection

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'Declaration
Public Class WorkItemLinkTypeCollection _
    Implements IEnumerable(Of WorkItemLinkType), IEnumerable
public class WorkItemLinkTypeCollection : IEnumerable<WorkItemLinkType>, 
    IEnumerable
public ref class WorkItemLinkTypeCollection : IEnumerable<WorkItemLinkType^>, 
    IEnumerable
type WorkItemLinkTypeCollection =  
    class 
        interface IEnumerable<WorkItemLinkType>
        interface IEnumerable 
    end
public class WorkItemLinkTypeCollection implements IEnumerable<WorkItemLinkType>, IEnumerable

The WorkItemLinkTypeCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of WorkItemLinkType in this collection.
Public property Item Gets the WorkItemLinkType in this collection that has the specified reference name.
Public property LinkTypeEnds Gets a collection of all WorkItemLinkType objects that are associated with the Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemLinkTypes in this collection.

Top

Methods

  Name Description
Public method Contains Checks whether the specified WorkItemLinkType occurs in this collection.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Export Exports all WorkItemLinkTypes in this collection to an XML document.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Import(String) Imports the specified XML-formatted string as a WorkItemLinkType and adds it to this collection.
Public method Import(XmlElement) Imports the specified XML object as a WorkItemLinkType and adds it to this collection.
Public method Import(String, Boolean)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetByName Attempts to get a WorkItemLinkType in this collection that has the specified reference name. Passes out the WorkItemLinkType object in the linkType parameter.
Public method Validate Validates the WorkItemLinkType definitions from the specified XML.

Top

Events

  Name Description
Public event ImportEventHandler An event handler for events that occur during an import call.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<WorkItemLinkType>.GetEnumerator Gets an enumerator object for this collection.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets an enumerator object for this collection.

Top

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.

See Also

Reference

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace