IMetadataStructureValidatorValidateItem(Vault, String, Object, ValidationResultBase, ResourceManager, 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#
bool ValidateItem(
	Vault vault,
	string configurationId,
	Object item,
	ValidationResultBase validationResult,
	ResourceManager resourceManager,
	Assembly[] containingAssemblies = null,
	int level = 15
)

Parameters

vault  Vault
The vault object.
configurationId  String
The id of 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.
resourceManager  ResourceManager
The resource manager object that contains needed resources for validating the given item.
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.

See Also