Interface IValidation

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that manage rules and validate them.

[Guid("D410A9BA-475A-11D2-9932-0000F80372B4")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IValidation

Properties

Rules

The rules associated with the class.

IEnumRule Rules { get; }

Property Value

IEnumRule

Remarks

Property Rules returns a IEnumRule enumerator hydrated with all of the rules associated with the object class.

RulesByField[string]

The rules associated with the attribute.

IEnumRule RulesByField[string FieldName] { get; }

Parameters

FieldName string

Property Value

IEnumRule

RulesBySubtypeCode[int]

The rules associated with the subtype.

IEnumRule RulesBySubtypeCode[int SubtypeCode] { get; }

Parameters

SubtypeCode int

Property Value

IEnumRule

Methods

AddRule(IRule)

Adds the rule to the set of associated rules.

void AddRule(IRule Rule)

Parameters

Rule IRule

DeleteRule(IRule)

Deletes the rule from the set of associated rules.

void DeleteRule(IRule Rule)

Parameters

Rule IRule

Validate(IQueryFilter, IWorkspace)

Validates the selection.

ISelectionSet Validate(IQueryFilter Selection, IWorkspace Workspace)

Parameters

Selection IQueryFilter
Workspace IWorkspace

Returns

ISelectionSet

Remarks

Validate on a row occurs in five steps:

  1. Validate the subtype

  2. Validate the attribute rules

  3. Validate the network connectivity rules (if network feature)

  4. Validate the relationship rules

  5. Perform custom validation (using optional class extension)

The validate process stops once a row is found invalid. For example, if a network feature violates an attribute rule, the validation process stops and the feature's network connectivity rules are not evaluated until the attribute rule violation is corrected.

ValidateSelection(ISelectionSet, IWorkspace)

Validates the selection.

ISelectionSet ValidateSelection(ISelectionSet Selection, IWorkspace Workspace)

Parameters

Selection ISelectionSet
Workspace IWorkspace

Returns

ISelectionSet

ValidateSet(ISet)

Validates the set.

ISet ValidateSet(ISet Selection)

Parameters

Selection ISet

Returns

ISet