Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.ProtectDocument.UnProtect C# (CSharp) Метод

UnProtect() приватный статический Метод

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