private bool Arg_OnUploadItemValidFailed(UploadItem upload, FileUploadTypeValidOption validOption) { base.Html("调用 -> OnUploadItemValidFailed {0} ,Suffix is {1}<br/>", upload.FileName, upload.FileSuffix); return false; // throw new NotImplementedException(); }
private static bool UploadParam_OnUploadItemValidFailed(UploadItem upload, FileUploadTypeValidOption validOption) { return false; }
/// <summary> /// 执行 OnUploadItemValidFailed 事件绑定的委托方法(返回是否继续上传文件标识) /// </summary> /// <param name="uploadItem">当前开始上传对象UploadItem</param> /// <param name="validOption">FileUploadTypeValidOption选项</param> public bool ExcuteOnUploadItemValidFailed(UploadItem uploadItem, FileUploadTypeValidOption validOption) { bool isContinue = false; if (this.Events["OnUploadItemValidFailed"] != null) { foreach (Delegate delgate in this.Events["OnUploadItemValidFailed"].GetInvocationList()) { isContinue = (bool)delgate.Method.Invoke(delgate.Target, new object[] { uploadItem, validOption }); } } return isContinue; }