PnP Core Component - Checks Out a File in SharePoint 2016

Please refer to the Introduction to PnP Core Component and OfficeDevPnP.Core for more details. I have created a console application and added SharePointPnPCoreOnline NuGet package for the SharePoint 2016 version.
 
Code Snippet
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. using System.Threading.Tasks;  
  6. using Microsoft.SharePoint.Client;  
  7. using OfficeDevPnP.Core;  
  8.   
  9. namespace SP2016PnPCoreComponentDemo  
  10. {  
  11.     class Program  
  12.     {  
  13.         static void Main(string[] args)  
  14.         {  
  15.             // Input Parameters  
  16.             string siteUrl = "http://c7395723754/";  
  17.             string userName = "administrator";  
  18.             string password = "xxxxxxxx";  
  19.             string domain = "AD2012";            
  20.             string serverRelativeURL = "/Shared Documents/Document.rtf";  
  21.   
  22.             OfficeDevPnP.Core.AuthenticationManager authMgr = new OfficeDevPnP.Core.AuthenticationManager();  
  23.   
  24.             try  
  25.             {  
  26.                 // Get the client context  
  27.                 using (var ctx = authMgr.GetNetworkCredentialAuthenticatedContext(siteUrl, userName, password, domain))  
  28.                 {  
  29.                     // Checks out a file  
  30.                     ctx.Web.CheckOutFile(serverRelativeURL);  
  31.                 }  
  32.             }  
  33.   
  34.             catch (Exception ex)  
  35.             {  
  36.                 Console.WriteLine("Error Message: " + ex.Message);  
  37.             }  
  38.         }  
  39.     }  
  40. }