What is the Find method?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the Find method?

Rating:

The Find method of the DataRelationCollection class is used to get a specified row from a collection of DataRow objects. The DataRowCollection class contains two overloaded versions of the Find method. Their signatures are as follows:

  • Overloads Public Function Find(Object) As DataRow

    It accepts a primary key value and returns a DataRow object containing the specified primary key value.


  • Overloads Public Function Find(Object()) As DataRow

    It accepts an array of primary key values of the DataRow object and returns an array of DataRow objects containing the specified primary key values.
The Find method can only be used if the DataTable object to which the DataRowCollection object belongs to has a primary key column. An exception of type MissingPrimaryKeyException is thrown if the Find method is invoked to access a row in a table that has no primary key column.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.