Click or drag to resize

IMetadataStructureValidatorValidateItem Method (Vault, String, Object, ValidationResultBase, Assembly, Int32)

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: 21.8.10524.1
bool ValidateItem(
	Vault vault,
	string configurationId,
	Object item,
	ValidationResultBase validationResult,
	Assembly[] containingAssemblies = null,
	int level = 10


Type: Vault
The vault object.
Type: SystemString
The id of the configuration that is being validated.
Type: SystemObject
The validated item "value". To validate static structure use: typeof(somestatic)
Type: MFiles.VAF.ConfigurationValidationResultBase
The validation state that receives the validation results.
containingAssemblies (Optional)
Type: System.ReflectionAssembly
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 (Optional)
Type: SystemInt32
Hierarchy level limiter. Number of levels how deep to check. Set only for dev reasons.

Return Value

Type: Boolean
True when everything is ok.
See Also