Câu 4: 70-488: Developing Microsoft SharePoint Server 2013 Core Solutions
A company uses SharePoint for internal collaboration. SharePoint is deployed on a server farm with a single front-end server, a single application server, and a dedicated database server. You review existing Web Parts that read from and write to SharePoint lists. You find the following code in one of the utility class…
Nội dung câu hỏi
A company uses SharePoint for internal collaboration. SharePoint is deployed on a server farm with a single front-end server, a single application server, and a dedicated database server. You review existing Web Parts that read from and write to SharePoint lists. You find the following code in one of the utility classes and notice memory leaks in the method. You need to ensure that there are no memory leaks in the method. What should you do?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Add a finally statement and include site.Dispose ().
- B. Add site.Dispose() to the catch statement.
- C. Add a finally statement and include siteCollection.Dispose (); — đáp án hiện tại
- D. Add siteCollection.Dispose() to the catch statement.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.