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

Parameters

vault
Type: Vault
The vault object.
configurationId
Type: SystemString
The id of 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.
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