Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Submit Inheritance: System.Object

Syntax

Microsoft.Restier.Core.Submit.ChangeSetItemValidationResult

Summary

Represents a single result when validating an entity, property, etc.

Constructors

.ctor

Syntax

public ChangeSetItemValidationResult()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Message

Gets or sets the message to be displayed to the end user for this validation result.

Syntax

public string Message { get; set; }

Property Value

Type: string

PropertyName

Gets or sets the name of the property to which the validation result applies. If null, the validation result applies to the whole Target.

Syntax

public string PropertyName { get; set; }

Property Value

Type: string

Severity

Gets or sets the severity of this validation result.

Syntax

public System.Diagnostics.Tracing.EventLevel Severity { get; set; }

Property Value

Type: System.Diagnostics.Tracing.EventLevel

Target

Gets or sets the item to which the validation result applies.

Syntax

public object Target { get; set; }

Property Value

Type: object

ValidatorType

Gets or sets the identifier for this validation result.

Syntax

public string ValidatorType { get; set; }

Property Value

Type: string

Remarks

Id allows programmatic matching of validation results between tiers.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Override

Returns the string that represents this validation result.

Syntax

public override string ToString()

Returns

Type: string The string that represents this validation result.

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?