Which code segment should you add at line 11?

You have a document library named Documents. Minor and major version management is enabled for the document library.
You plan to add a document named MyFile.docx to Documents.
You create a console application that contains the following code segment. (Line numbers are included for reference only.)

You need to ensure that all users can see the document.
Which code segment should you add at line 11?
A. file.CanOpenFile(true);
B. file.Publish(string.Empty);
C. file.ReleaseLock(string.Empty);
D. file.Update();

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.