SenseNet.ContentRepository.Field.Parse C# (CSharp) Method

Parse() public method

public Parse ( string value ) : bool
value string
return bool
        public bool Parse(string value)
        {
            try
            {
                if (!ParseValue(value))
                {
                    this.ValidationResult = new FieldValidationResult("FieldParse");
                    this.ValidationResult.AddParameter("InputValue", value);
                    return false;
                }
                else
                {
                    Validate();
                    return IsValid;
                }
            }
            catch (Exception e) //rethrow
            {
                throw FieldParsingException.GetException(this, e);
            }
        }
        //protected abstract bool ParseValue(string value);