QueryHierarchy Class
Represents the top-level folder in a project.
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
'Dichiarazione
Public NotInheritable Class QueryHierarchy _
Inherits QueryFolder
public sealed class QueryHierarchy : QueryFolder
public ref class QueryHierarchy sealed : public QueryFolder
[<Sealed>]
type QueryHierarchy =
class
inherit QueryFolder
end
public final class QueryHierarchy extends QueryFolder
The QueryHierarchy type exposes the following members.
Properties
Name | Description | |
---|---|---|
AccessControlList | Gets the access control list for the query item. (Inherited from QueryItem.) | |
Count | Gets the number of items in this folder. This count is not recursive. (Inherited from QueryFolder.) | |
Id | Gets the identifier of this query item. (Inherited from QueryItem.) | |
IsDeleted | Gets a flag describing whether this item is a personal query or folder. (Inherited from QueryItem.) | |
IsDirty | Gets a flag describing whether this query item needs to be saved. (Inherited from QueryItem.) | |
IsNew | (Inherited from QueryItem.) | |
IsPersonal | Gets a flag describing whether this item is a personal query or folder. (Inherited from QueryItem.) | |
Item[Guid] | Gets the query item in this folder with the specified GUID. (Inherited from QueryFolder.) | |
Item[String] | Gets the query item in this folder with the specified name. (Inherited from QueryFolder.) | |
Name | Gets or sets the name of this query item. (Inherited from QueryItem.) | |
OwnerDescriptor | Gets or sets the identity descriptor of the owner of the query item. (Inherited from QueryItem.) | |
Parent | Gets the parent query folder. (Inherited from QueryItem.) | |
Path | Gets the fully qualified path to this query item. (Inherited from QueryItem.) | |
Project | Gets the project to which this query item is associated. (Inherited from QueryItem.) | |
SupportsFolders | Gets a flag describing whether the server supports the creation of query folders. | |
SupportsPermissions | Gets a flag describing whether the serevr supports setting permissions on queries and query folders. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds the specified query item to this folder. (Inherited from QueryFolder.) | |
Contains(Guid) | Checks whether the specified query item exists in this query folder. (Inherited from QueryFolder.) | |
Contains(String) | Checks whether the specified query item exists in this query folder. (Inherited from QueryFolder.) | |
Contains(QueryItem) | Checks whether the specified query item exists in this query folder. (Inherited from QueryFolder.) | |
Delete | Removes this item from the collection. (Inherited from QueryItem.) | |
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.) | |
Find | Gets the query item with the specified GUID. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Refresh | Resets all changes to the hierarchy and refreshes the hierarchy from the server. | |
Reset | Undoes all changes to the hierarchy. | |
Save | Saves all changes to the hierarchy. | |
ToString | Returns the fully qualified path to this query item. (Inherited from QueryItem.) |
Top
Events
Name | Description | |
---|---|---|
ChangesCommitted | This event is fired when the content change of the folder is committed to the server. (Inherited from QueryFolder.) | |
ContentsChanged | This event is fired when the contents of the folder change. (Inherited from QueryFolder.) | |
HierarchyRefreshed | This event is fired after the hierarchy is successfully refreshed from the server. | |
HierarchyReset | This event is fired after the hierarchy is reset (all changes are undone). |
Top
Fields
Name | Description | |
---|---|---|
m_lock | (Inherited from QueryFolder.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable<QueryItem>.GetEnumerator | (Inherited from QueryFolder.) | |
IEnumerable.GetEnumerator | (Inherited from QueryFolder.) |
Top
Remarks
Contains the Team Queries and My Queries folders. Provides operations for finding items, resetting changes to the tree, and saving changes to the tree.
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.