Net.Sf.Dbdeploy.UniqueChange.UniqueChange C# (CSharp) Method

UniqueChange() public method

Initializes a new instance of the UniqueChange class.
uniqueKey;The unique key must be a supplied.
public UniqueChange ( string uniqueKey ) : System
uniqueKey string The unique key folder and script number combination (Alpha/2).
return System
        public UniqueChange(string uniqueKey)
        {
            if (string.IsNullOrWhiteSpace(uniqueKey))
            {
                throw new ArgumentNullException("uniqueKey", "The unique key must be a supplied.");
            }

            var parts = uniqueKey.Split('/');
            if (parts.Length != 2)
            {
                throw new ArgumentException("The unique key must be a folder and script number combination (Alpha/2).", "uniqueKey");
            }

            int scriptNumber;
            if (!int.TryParse(parts[1], out scriptNumber))
            {
                throw new ArgumentException("The unique key script number must be an integer (Alpha/2).", "uniqueKey");
            }

            this.Folder = parts[0];
            this.ScriptNumber = scriptNumber;
        }

Same methods

UniqueChange::UniqueChange ( string folder, int scriptNumber ) : System