Class ResourceValidatorLoader
Utility class that initializes the default set of resource validators
Inheritance
System.Object
ResourceValidatorLoader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OSGeo.MapGuide.MaestroAPI.Resource.Validation
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public static class ResourceValidatorLoader
Examples
This example shows how a ResourceValidatorLoader is used
IResource resource;
IServerConnection conn;
...
ResourceValidatorLoader.LoadStockValidators();
var context = new ResourceValidationContext(conn);
var issues = ResourceValidatorSet.Validate(context, item, false);
Methods
| Improve this Doc View SourceLoadStockValidators()
Loads the default set of validators in this assembly
Declaration
public static void LoadStockValidators()
Remarks
This method only needs to be called once. Subsequent calls return immediately. As such it is ideal to put this call in your application's startup/initialization code.