IMetadataStructureValidatorValidateItem Method (Vault, String, Object, ValidationResultBase, ResourceManager, 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
Syntaxbool ValidateItem(
Vault vault,
string configurationId,
Object item,
ValidationResultBase validationResult,
ResourceManager resourceManager,
Assembly[] containingAssemblies = null,
int level = 10
)
Function ValidateItem (
vault As Vault,
configurationId As String,
item As Object,
validationResult As ValidationResultBase,
resourceManager As ResourceManager,
Optional containingAssemblies As Assembly() = Nothing,
Optional level As Integer = 10
) As Boolean
bool ValidateItem(
Vault^ vault,
String^ configurationId,
Object^ item,
ValidationResultBase^ validationResult,
ResourceManager^ resourceManager,
array<Assembly^>^ containingAssemblies = nullptr,
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. - resourceManager
- Type: System.ResourcesResourceManager
The resource manager object that contains needed resources for validating the given item. - 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:
BooleanTrue when everything is ok.
See Also