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

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {            
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_WorkingWithDocument();
            dataDir = dataDir + "ProtectDocument.doc";

            Protect(dataDir);
            UnProtect(dataDir);
            GetProtectionType(dataDir);
        }
        /// <summary>