Table of Contents

Class Defect

Namespace
Acuit.Pinpoint.Client2
Assembly
Acuit.Pinpoint.Client2.dll

A defect.

[DataContract(IsReference = true)]
[KnownType(typeof(Defect))]
public class Defect : INotifyPropertyChanged
Inheritance
Defect
Implements
Inherited Members

Fields

PathSeparator

The separator to use when constructing defect and repair paths for display.

public const string PathSeparator = "_"

Field Value

string

Properties

DefectId

Gets or sets the unique identifier for this defect.

[DataMember]
public int DefectId { get; set; }

Property Value

int

FullName

Gets the full name of the defect, as the individual parts separated by underscores.

public string FullName { get; }

Property Value

string

Remarks

This property value is derived from the Name of this defect and each parent defect up through the hierarchy.

PropertyChanged notifications are not completely reliable for this property; they only fire when this defect's Name or ParentDefect property changes.

IsDeserializing

Gets or sets whether this object is currently being deserialized.

protected bool IsDeserializing { get; }

Property Value

bool

Name

Gets or sets the defect name.

[DataMember]
public string Name { get; set; }

Property Value

string

ParentDefect

Gets or sets the parent defect.

[DataMember]
public Defect ParentDefect { get; set; }

Property Value

Defect

ParentDefectHasBeenIncluded

Gets or sets whether a navigation property has been included yet while getting an entity graph for a data model (to prevent doing so more than once).

public bool ParentDefectHasBeenIncluded { get; set; }

Property Value

bool

Methods

IsDescendedFrom(Defect)

Determines whether this defect is a descendant of another.

public bool IsDescendedFrom(Defect other)

Parameters

other Defect

A defect.

Returns

bool

true if this defect is a descendant of other.

Exceptions

ArgumentNullException

other is null.

OnPropertyChanged(string)

Processes property changes by raising the PropertyChanged event.

protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName string

The name of the property that changed.

ToString()

Returns the FullName value as a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler