Autodesk Vault ProfessionalVault API

Validate Property

Autodesk.DataManagement.Client.Framework.Vault.Forms.SettingsSelectEntitySettings.SelectEntityOptionsExtensibility

Gets or sets the validation delegate. If provided, this is called when the action button is clicked before the form is closed.

Syntax

public System.Func<SelectEntityResults,bool> Validate {get; set;}
Public Property Validate As System.Func(Of SelectEntityResults,Boolean)

Example

bool selectEntityValidate(Vault.Forms.Results.SelectEntityResults results)
{
    foreach(Vault.Currency.Entities.IEntity entity in results.SelectedEntities)
    {
        //do validation
        if(notValid)
            return false;
    }
    return true;
}

See Also