adTempus API
ArcanaDevelopment.adTempus.Client Namespace / ADTObject Class / Validate Method
Collection of messages to add validation errors to. Can be null if you don't need the messages, though why validate if you don't?


In This Topic
    Validate Method (ADTObject)
    In This Topic
    Performs server-side validation of the object
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Overridable Function Validate( _
       ByVal errors As MessageCollection _
    ) As MessageType
    [Pure()]
    public virtual MessageType Validate( 
       MessageCollection errors
    )
    [Pure()]
    public:
    virtual MessageType Validate( 
       MessageCollection^ errors
    ) 

    Parameters

    errors
    Collection of messages to add validation errors to. Can be null if you don't need the messages, though why validate if you don't?

    Return Value

    A ArcanaDevelopment.adTempus.Shared.MessageType value indicating the highest severity error encountered during validation. If no problems were found, the result is ArcanaDevelopment.adTempus.Shared.MessageType.Informational and no messages are added to errors.
    Remarks
    Validate sends the object to the server for validation and returns the results. It is not necessary to explicitly call Validate before saving an object: the Save methods all perform validation as part of the save operation and the save fails if errors are found. Validate can be used to validate objects that are not directly saveable (such as a JobStep) when the user closes the editor for that object.
    See Also