NotImplementedException does not implement this method or operation, notimplemented

Source: Internet
Author: User

NotImplementedException does not implement this method or operation, notimplemented

When you use DevExpress to bind DataSource to the control CheckedListBoxControl, an exception "NotImplementedException does not implement this method or operation" is thrown. The Code is as follows:

this.checkedListBoxControl.DataSource = DataAccess.BaseInfoDataAccess.Sites.Where(v => v.Site==1); this.checkedListBoxControl.ValueMember = "Site"; this.checkedListBoxControl.DisplayMember = "SiteName";

After adding ToList () to Where, solve the problem.

this.checkedListBoxControl.DataSource = DataAccess.BaseInfoDataAccess.Sites.Where(v => v.Site==1).ToList();

  


An exception of the "SystemNotImplementedException" type occurs in DangHongTVNettiersDataSqlClientDLL.

Printf ("\ t \ t1. Enter the Student Score record");/* Enter the Student Score record */
Printf ("\ t \ t2. Print the record \ n");/* display */
Printf ("\ t \ t3. Search for Search record on name \ n");/* Search */
Printf ("\ t \ t4. Delete a record \ n");/* Delete */
Printf ("\ t \ t5. Sort to make New a file \ n");/* Sort */
Printf ("\ t \ t6. Insert record to list \ n");/* Insert */
Printf ("\ t \ t7. Save the file \ n");/* Save */
Printf ("\ t \ t8. read Load the file \ n");/* read */
Printf ("\ t \ t9. Quit \ n");/* exit */

Throw new SystemNotImplementedException ();

Is the exception that occurs when there is no method to implement the interface or abstract class requirements
For example:
Interface abc {int ();}

Public class d: abc {
Int a () {throw new System. NotImplementedException ();}
}

This exception is generally not thrown when the code is not written.
It does not have much effect. You can also change it to Exception to write the error messages you want to bring up:
Public class d: abc {
Int a () {throw new Exception (

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.