Validate() public abstract method

public abstract Validate ( string &result ) : bool
result string
return bool
コード例 #1
0
        public void SetInstance(TaskQueue.ITQueue instance, QueueSpecificParameters parameters)
        {
            this.QueueTypeName = instance.QueueType;
            this.QueueInstance = instance;
            #if DEBUG
            System.Diagnostics.Debug.Assert(instance.GetParametersModel().GetType() == parameters.GetType());
            #endif
            this.specParams = parameters;

            string chkresult;
            if (!parameters.Validate(out chkresult))
                throw new Exception("Invalid parameters passed to queue: " + Name);
        }
コード例 #2
0
        public void SetInstance(TaskQueue.ITQueue instance, QueueSpecificParameters parameters)
        {
            this.QueueTypeName = instance.QueueType;
            this.QueueInstance = instance;
#if DEBUG
            System.Diagnostics.Debug.Assert(instance.GetParametersModel().GetType() == parameters.GetType());
#endif
            this.specParams = parameters;

            string chkresult;
            if (!parameters.Validate(out chkresult))
            {
                throw new Exception("Invalid parameters passed to queue: " + Name);
            }
        }