Click or drag to resize

MetadataStructureValidatorValidateItemInternal Method

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

Namespace:  MFiles.VAF.Configuration
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
protected virtual bool ValidateItemInternal(
	Vault vault,
	IConfiguration configuration,
	Object item,
	ValidationResultBase validationResult,
	Object parent,
	MemberInfo member,
	int level,
	Assembly[] containingAssemblies,
	HashSet<Object> handledItems
)

Parameters

vault
Type: Vault
The vault object.
configuration
Type: MFiles.VAF.ConfigurationIConfiguration
The configuration that is being validated.
item
Type: SystemObject
The validated item "value". To validate static structure use: typeof(somestatic)
validationResult
Type: MFiles.VAF.ConfigurationValidationResultBase
The validation state that receives the validation results.
parent
Type: SystemObject
Parent object of item. Can be null.
member
Type: System.ReflectionMemberInfo
The member in which this item is, can be null, and usually is.
level
Type: SystemInt32
Hierarchy level limiter. Number of levels how deep to check. Set only for dev reasons.
containingAssemblies
Type: System.ReflectionAssembly
Set of assemblies that are allowed to contain the validated items.
handledItems
Type: System.Collections.GenericHashSetObject
Collection of items that have already been validated.

Return Value

Type: Boolean
True when everything is ok.
See Also