Show / Hide Table of Contents

Class TemplateFieldDefinition

Specification for a field in a bug template.

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

Constructors

View Source

TemplateFieldDefinition()

Initializes a new instance of the TemplateFieldDefinition class.

Declaration
public TemplateFieldDefinition()
View Source

TemplateFieldDefinition(TemplateFieldDefinition)

Initializes a new instance of the TemplateFieldDefinition class.

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

The template field definition to copy.

Properties

View Source

DefaultValue

Gets or sets the default value for the field.

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

DefaultValueToolTip

Gets the value of the tooltip to display the default value.

Declaration
[JsonIgnore]
public string DefaultValueToolTip { get; }
Property Value
Type Description
string
View Source

DisplayName

Gets or sets the display name of the field to show in the Aruba UI.

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

HasDefaultValue

Gets a value indicating whether the field has a default value.

Declaration
[JsonIgnore]
public bool HasDefaultValue { get; }
Property Value
Type Description
bool
View Source

HelperText

Gets or sets the helper text for this field.

Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
public string HelperText { get; set; }
Property Value
Type Description
string
View Source

Id

Gets the unique id for this instance of this field.

Declaration
[JsonIgnore]
public Guid Id { get; }
Property Value
Type Description
Guid
View Source

IsFromParent

Gets or sets a value indicating whether this field is from a parent.

Declaration
[JsonIgnore]
public bool IsFromParent { get; set; }
Property Value
Type Description
bool
View Source

Name

Gets or sets the field name, corresponding to the name of a field recognized by the bug service being used.

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

OverrideParent

Gets or sets a value indicating whether this field should override the parent value.

Declaration
public bool OverrideParent { get; set; }
Property Value
Type Description
bool
View Source

ParentField

Gets or sets the parent field.

Declaration
[JsonIgnore]
public TemplateFieldDefinition ParentField { get; set; }
Property Value
Type Description
TemplateFieldDefinition
View Source

ParentTemplateId

Gets or sets the parent template id.

Declaration
[JsonIgnore]
public Guid ParentTemplateId { get; set; }
Property Value
Type Description
Guid
View Source

UrgencyLevel

Gets or sets the urgency level specific to a template.

Declaration
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public UrgencyLevel UrgencyLevel { get; set; }
Property Value
Type Description
UrgencyLevel
View Source

ViewModel

Gets or sets the View Model object.

Declaration
[JsonIgnore]
public object ViewModel { get; set; }
Property Value
Type Description
object

Methods

View Source

Equals(TemplateFieldDefinition)

Indicates whether the current object is equal to another object of the same type.

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

An object to compare with this object.

Returns
Type Description
bool

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

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()
View Source

ToString()

Returns the name of the field definition.

Declaration
public override string ToString()
Returns
Type Description
string

The name of the field definition.

Overrides
object.ToString()

Implements

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