Seek Method (record)

Microsoft Deployment Tools

Deployment Tools Foundation Seek Method (record)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerViewSeek(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
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) Version: 3.0.0.0 (3.5.1623.0)