Click or drag to resize
IUserManagerValidateUser Method
Validates the record passed across.

Namespace: VirtualRadar.Interface.Settings
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void ValidateUser(
	List<ValidationResult> results,
	IUser record,
	IUser currentRecord,
	IList<IUser> allRecords
)

Parameters

results
Type: System.Collections.GenericListValidationResult
A list of every problem with the record. If there are no problems then leave this alone.
record
Type: VirtualRadar.Interface.SettingsIUser
The record to validate.
currentRecord
Type: VirtualRadar.Interface.SettingsIUser
If the record is new then this will be null - otherwise it is the original record that is now being modified.
allRecords
Type: System.Collections.GenericIListIUser
If this is null then validate against the source of users - otherwise it is the entire list of users to validate against (the assumption being that this was originally returned by GetAll and may contain new, modified or deleted objects that have not yet been saved).

Return Value

Type: 
Remarks
If the user manager does not support a particular feature, such as the changing of the enabled state or the changing of the password, then return an appropriate validation message. However the UI should have taken care not to let such modifications get this far.
See Also