MetadataStructureValidatorValidateItem(Vault, IConfiguration, Object, ValidationResultBase, Assembly, Int32) Method

Validate item with its children. Can validate static and instance objects.

Definition

Namespace: MFiles.VAF.Configuration
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public virtual bool ValidateItem(
	Vault vault,
	IConfiguration configuration,
	Object item,
	ValidationResultBase validationResult,
	Assembly[] containingAssemblies = null,
	int level = 15
)

Parameters

vault  Vault
The vault object.
configuration  IConfiguration
The configuration that is being validated.
item  Object
The validated item "value". To validate static structure use: typeof(somestatic)
validationResult  ValidationResultBase
The validation state that receives the validation results.
containingAssemblies  Assembly  (Optional)
Set of assemblies that are allowed to contain the validated items. Can be null in which case the set defaults to the assembly that contains the item.
level  Int32  (Optional)
Hierarchy level limiter. Number of levels how deep to check. Set only for dev reasons.

Return Value

Boolean
True when everything is ok.

Implements

IMetadataStructureValidatorValidateItem(Vault, IConfiguration, Object, ValidationResultBase, Assembly, Int32)

See Also