private DTSValidationStatus ValidateUsageOfColumnProperty(string propertyName, object propertyValue) { if (Enum.IsDefined(typeof(Utilities.usageOfColumnEnum), propertyValue)) { return(DTSValidationStatus.VS_ISVALID); } else { this.PostError(MessageStrings.InvalidPropertyValue(propertyName, propertyValue)); return(DTSValidationStatus.VS_ISCORRUPT); } }
private DTSValidationStatus ValidateStringProperty(string propertyName, object propertyValue) { if (propertyValue is string) { return(DTSValidationStatus.VS_ISVALID); } else { this.PostError(MessageStrings.InvalidPropertyValue(propertyName, propertyValue)); return(DTSValidationStatus.VS_ISCORRUPT); } }
private DTSValidationStatus ValidateRowTypeProperty(string propertyName, object propertyValue) { if (propertyValue is string) { string value = (string)propertyValue; if (value.Length <= MaxRowTypeLength) { return(DTSValidationStatus.VS_ISVALID); } else { this.PostError(MessageStrings.PropertyStringTooLong(propertyName, propertyValue.ToString())); return(DTSValidationStatus.VS_ISBROKEN); } } else { this.PostError(MessageStrings.InvalidPropertyValue(propertyName, propertyValue)); return(DTSValidationStatus.VS_ISCORRUPT); } }