Deployment Tools Foundation
Seek Method (record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► View ► Seek(Record)
Refreshes the information in the supplied record without changing the position
in the result set and without affecting subsequent fetch operations.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public bool Seek( Record record )
Public Function Seek ( record As Record ) As Boolean
public: bool Seek( Record^ record )
Parameters
- record (Record)
- the Record to be filled with the result of the seek
Return Value
Remarks
After seeking, the Record may then be used for subsequent Update, Delete, and Refresh operations. All primary key columns of the table must be in the query and the Record must have at least as many fields as the query. Seek cannot be used with multi-table queries. This method cannot be used with a View containing joins.
See Modify(ViewModifyMode, Record) for more remarks.
Win32 MSI API: MsiViewModify
Exceptions
Exception | Condition |
---|---|
InstallerException | the seek failed |
InvalidHandleException | the View handle is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)