Show / Hide Table of Contents

Class DuplicateCheckQueryDefinition

Specification for a saved query for duplicate checking in a template.

Inheritance
object
DuplicateCheckQueryDefinition
Implements
IEquatable<DuplicateCheckQueryDefinition>
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class DuplicateCheckQueryDefinition : IEquatable<DuplicateCheckQueryDefinition>

Constructors

View Source

DuplicateCheckQueryDefinition()

Initializes a new instance of the DuplicateCheckQueryDefinition class.

Declaration
public DuplicateCheckQueryDefinition()
View Source

DuplicateCheckQueryDefinition(DuplicateCheckQueryDefinition)

Initializes a new instance of the DuplicateCheckQueryDefinition class.

Declaration
public DuplicateCheckQueryDefinition(DuplicateCheckQueryDefinition other)
Parameters
Type Name Description
DuplicateCheckQueryDefinition other

The duplicate check query definition to copy.

View Source

DuplicateCheckQueryDefinition(List<string>, List<string>, List<string>, string, uint, uint)

Initializes a new instance of the DuplicateCheckQueryDefinition class.

Declaration
public DuplicateCheckQueryDefinition(List<string> workItemTypes, List<string> workItemStates, List<string> fieldsToMatch, string dateField, uint numberDaysAgo, uint confidenceMatchThreshold)
Parameters
Type Name Description
List<string> workItemTypes

The work item types.

List<string> workItemStates

The work item states.

List<string> fieldsToMatch

The fields to match for similiarity when performing a duplicate check.

string dateField

The date field the query should search against.

uint numberDaysAgo

How many days back the query should look for work items.

uint confidenceMatchThreshold

The confidence threshold for a confidence match percent.

Properties

View Source

ConfidenceMatchThreshold

Gets or sets the confidence threshold for a confidence match percent. Work Items that have a matching lower than this shouldn't be shown in the duplicate checker view.

Declaration
public uint? ConfidenceMatchThreshold { get; set; }
Property Value
Type Description
uint?
Remarks

The value should be between 0 and 100, inclusive..

View Source

DaysAgoFieldName

Gets or sets which date field the query should search against.

Declaration
public string DaysAgoFieldName { get; set; }
Property Value
Type Description
string
View Source

FieldsToMatch

Gets the list of fields that dupe checking should perform matching on.

Declaration
public List<string> FieldsToMatch { get; }
Property Value
Type Description
List<string>
View Source

IsValidQuery

Gets a value indicating whether a query is valid or not.

Declaration
public bool IsValidQuery { get; }
Property Value
Type Description
bool
Remarks

A query is valid if the NumberDaysAgo field is greater than 0, the DaysAgoFieldName is not empty, and any of the lists have at least one element to them.

View Source

NumberDaysAgo

Gets or sets how many days back the query should look for work items.

Declaration
public uint? NumberDaysAgo { get; set; }
Property Value
Type Description
uint?
View Source

SavedWorkItemStates

Gets the work item states that should be searched for in the query.

Declaration
public List<string> SavedWorkItemStates { get; }
Property Value
Type Description
List<string>
View Source

SavedWorkItemTypes

Gets the work item types that should be searched for in the query.

Declaration
public List<string> SavedWorkItemTypes { get; }
Property Value
Type Description
List<string>

Methods

View Source

Equals(DuplicateCheckQueryDefinition)

Determines if another DuplicateCheckQueryDefinition object is equal to this object using a deep comparison.

Declaration
public bool Equals(DuplicateCheckQueryDefinition other)
Parameters
Type Name Description
DuplicateCheckQueryDefinition other

The other object to compare against.

Returns
Type Description
bool

Returns true if the objects are equal, and false if they are not.

View Source

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current object.

Returns
Type Description
bool

true if the specified object is equal to the current object; otherwise, false.

Overrides
object.Equals(object)
View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()
Remarks

This function is not used, but is required to be implemented by IEquatable<T>.

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX