MCQs > IT & Programming > C# > Which of the following is the correct code to close all references to the com objects below? Workbooks books = excel.WorkBooks; Workbook book = books[1]; Sheets sheets = book.WorkSheets; Worksheet ws = sheets[1];

C# MCQs

Which of the following is the correct code to close all references to the com objects below?

Workbooks books = excel.WorkBooks;

Workbook book = books[1];

Sheets sheets = book.WorkSheets;

Worksheet ws = sheets[1];

Answer

Correct Answer: Marshal.ReleaseComObject(books);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More C# MCQ Questions

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it