Represents a folder in a team project that can contain QueryDefinitions and other QueryFolders.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.QueryItem
    Microsoft.TeamFoundation.WorkItemTracking.Client.QueryFolder
      Microsoft.TeamFoundation.WorkItemTracking.Client.QueryHierarchy
Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public Class QueryFolder _
    Inherits QueryItem _
    Implements IEnumerable(Of QueryItem), IEnumerable
public class QueryFolder : QueryItem, 
    IEnumerable<QueryItem>, IEnumerable
public ref class QueryFolder : public QueryItem, 
    IEnumerable<QueryItem^>, IEnumerable
type QueryFolder =  
    class 
        inherit QueryItem 
        interface IEnumerable<QueryItem>
        interface IEnumerable 
    end
public class QueryFolder extends QueryItem implements IEnumerable<QueryItem>, IEnumerable
The QueryFolder type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | QueryFolder(String) | Initializes a new QueryFolder instance. | 
| .gif) | QueryFolder(String, QueryFolder) | Initializes a new QueryFolder instance. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | AccessControlList | Gets the access control list for the query item. (Inherited from QueryItem.) | 
| .gif) | Count | Gets the number of items in this folder. This count is not recursive. | 
| .gif) | Id | Gets the identifier of this query item. (Inherited from QueryItem.) | 
| .gif) | IsDeleted | Gets a flag describing whether this item is a personal query or folder. (Inherited from QueryItem.) | 
| .gif) | IsDirty | Gets a flag describing whether this query item needs to be saved. (Inherited from QueryItem.) | 
| .gif) | IsNew | Returns 'true' if this query item is stored on the server, 'false' if it is a 'new' query item that has not been saved. (Inherited from QueryItem.) | 
| .gif) | IsPersonal | Gets a flag describing whether this item is a personal query or folder. (Inherited from QueryItem.) | 
| .gif) | Item[Guid] | Gets the query item in this folder with the specified GUID. | 
| .gif) | Item[String] | Gets the query item in this folder with the specified name. | 
| .gif) | Name | Gets or sets the name of this query item. (Inherited from QueryItem.) | 
| .gif) | OwnerDescriptor | Gets or sets the identity descriptor of the owner of the query item. (Inherited from QueryItem.) | 
| .gif) | Parent | Gets the parent query folder. (Inherited from QueryItem.) | 
| .gif) | Path | Gets the fully qualified path of this query item. (Inherited from QueryItem.) | 
| .gif) | Project | Gets the project to which this query item is associated. (Inherited from QueryItem.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Add | Adds the specified query item to this folder. | 
| .gif) | Contains(Guid) | Checks whether the specified query item exists in this query folder. | 
| .gif) | Contains(String) | Checks whether the specified query item exists in this query folder. | 
| .gif) | Contains(QueryItem) | Checks whether the specified query item exists in this query folder. | 
| .gif) | Delete | Removes this item from the collection. (Inherited from QueryItem.) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns the fully qualified path to this query item. (Inherited from QueryItem.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | ChangesCommitted | This event is fired when the content change of the folder is committed to the server. | 
| .gif) | ContentsChanged | This event is fired when the contents of the folder change. | 
Top
Fields
| Name | Description | |
|---|---|---|
| .gif) | m_lock | (Inherited from QueryItem.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IEnumerable<QueryItem>.GetEnumerator | |
| .gif) .gif) | IEnumerable.GetEnumerator | 
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.