Class TemplateAttachmentDefinition
Specification for an attachment in a bug template.
Implements
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class TemplateAttachmentDefinition : IEquatable<TemplateAttachmentDefinition>
Constructors
View SourceTemplateAttachmentDefinition()
Initializes a new instance of the TemplateAttachmentDefinition class.
Declaration
public TemplateAttachmentDefinition()
TemplateAttachmentDefinition(TemplateAttachmentDefinition)
Initializes a new instance of the TemplateAttachmentDefinition class. Copy constructor.
Declaration
public TemplateAttachmentDefinition(TemplateAttachmentDefinition other)
Parameters
Type | Name | Description |
---|---|---|
TemplateAttachmentDefinition | other | The template attachment definition to copy. |
Properties
View SourceDefaultValue
Gets or sets the default value for the attachment.
Declaration
public AttachmentDefinition DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
AttachmentDefinition |
ID
Gets or sets attachment's unique identifier.
Declaration
public string ID { get; set; }
Property Value
Type | Description |
---|---|
string |
IsDefaultValueOverridden
Gets or sets a value indicating whether the default value is overridden from the corresponding attachment in the parent template.
Declaration
public bool IsDefaultValueOverridden { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsUrgencyLevelOverridden
Gets or sets a value indicating whether the UrgencyLevel is overridden from the corresponding attachment in the parent template.
Declaration
public bool IsUrgencyLevelOverridden { get; set; }
Property Value
Type | Description |
---|---|
bool |
ShouldAutoCapture
Gets or sets a value indicating whether the corresponding attachment should autocapture or not in this template.
Declaration
public bool ShouldAutoCapture { get; set; }
Property Value
Type | Description |
---|---|
bool |
UrgencyLevel
Gets or sets the urgency level specific to a template.
Declaration
public UrgencyLevel UrgencyLevel { get; set; }
Property Value
Type | Description |
---|---|
UrgencyLevel |
Methods
View SourceCreateNew()
Static method for creating TemplateAttachmentDefinition with default values.
Declaration
public static TemplateAttachmentDefinition CreateNew()
Returns
Type | Description |
---|---|
TemplateAttachmentDefinition | Template attachment definition. |
Equals(TemplateAttachmentDefinition)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TemplateAttachmentDefinition other)
Parameters
Type | Name | Description |
---|---|---|
TemplateAttachmentDefinition | 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. |