Deployment Tools Foundation
Validate Method (record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► View ► Validate(Record)
Validates a record, returning information about any errors.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public ICollection<ValidationErrorInfo> Validate( Record record )
Public Function Validate ( _ record As Record _ ) As ICollection(Of ValidationErrorInfo)
public: ICollection<ValidationErrorInfo>^ Validate( Record^ record )
![](collapse_all.gif)
- record (Record)
- the Record to be validated
![](collapse_all.gif)
null if the record was validated; if there is an existing record with
the same primary keys that has conflicting data then error information is returned
![](collapse_all.gif)
The Record must have been obtained by calling Fetch()()(). Works with read-write and read-only records. This method cannot be used with a View containing joins.
See Modify(ViewModifyMode, Record) for more remarks.
Win32 MSI APIs: MsiViewModify, MsiViewGetError
![](collapse_all.gif)
Exception | Condition |
---|---|
InstallerException | the validation failed (for a reason other than invalid data) |
InvalidHandleException | the View handle is invalid |