Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.ProtectDocument.UnProtect C# (CSharp) Method

UnProtect() private static method

Shows how to unprotect document
private static UnProtect ( string inputFileName ) : void
inputFileName string input file name with complete path.
return void
        private static void UnProtect(string inputFileName)
        {
            // ExStart:UnProtectDocument
            Document doc = new Document(inputFileName);
            doc.Unprotect();
            // ExEnd:UnProtectDocument
            Console.WriteLine("\nDocument unprotected successfully.");
        }
        /// <summary>