CmisSync.Lib.MovedEventArgs.MovedEventArgs C# (CSharp) Method

MovedEventArgs() public method

Constructor.
public MovedEventArgs ( WatcherChangeTypes changeType, string oldDirectory, string directory, string name ) : System
changeType WatcherChangeTypes
oldDirectory string
directory string
name string
return System
        public MovedEventArgs(WatcherChangeTypes changeType, string oldDirectory, string directory, string name)
            : base(changeType, directory, name)
        {

            // Ensure that the directory name ends with a "\"
            if (!oldDirectory.EndsWith("\\", StringComparison.Ordinal))
            {
                oldDirectory = oldDirectory + "\\";
            }

            // Ensure that the directory name ends with a "\"
            if (!directory.EndsWith("\\", StringComparison.Ordinal))
            {
                directory = directory + "\\";
            }

            this.oldDirectory = oldDirectory;
            this.oldFullPath = Path.Combine(oldDirectory, name);
        }
MovedEventArgs