Class TemplateDefinition
Represents a design-time template for a bug.
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class TemplateDefinition : IEquatable<TemplateDefinition>, IRenameableData
Constructors
View SourceTemplateDefinition()
Initializes a new instance of the TemplateDefinition class.
Declaration
public TemplateDefinition()
TemplateDefinition(TemplateDefinition)
Initializes a new instance of the TemplateDefinition class. Almost a copy constructor, except for the name that needs to be explicitly specified.
Declaration
public TemplateDefinition(TemplateDefinition other)
Parameters
Type | Name | Description |
---|---|---|
TemplateDefinition | other | The template definition to copy. |
Properties
View SourceAttachments
Gets the list of attachments.
Declaration
public List<TemplateAttachmentDefinition> Attachments { get; }
Property Value
Type | Description |
---|---|
List<TemplateAttachmentDefinition> |
Fields
Gets the template field definition fields.
Declaration
public List<TemplateFieldDefinition> Fields { get; }
Property Value
Type | Description |
---|---|
List<TemplateFieldDefinition> |
Id
Gets or sets the unique id associated with this template.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Name
Gets or sets a name for this template.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentId
Gets or sets a parent template id.
Declaration
public Guid ParentId { get; set; }
Property Value
Type | Description |
---|---|
Guid |
SavedDupeCheckQuery
Gets or sets the saved duplicate checking query for this template.
Declaration
public DuplicateCheckQueryDefinition SavedDupeCheckQuery { get; set; }
Property Value
Type | Description |
---|---|
DuplicateCheckQueryDefinition |
Tags
Gets a list of tags to set on a bug.
Declaration
public List<string> Tags { get; }
Property Value
Type | Description |
---|---|
List<string> |
Methods
View SourceEquals(TemplateDefinition)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TemplateDefinition other)
Parameters
Type | Name | Description |
---|---|---|
TemplateDefinition | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
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
View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |