Class PropertyValidationService
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class PropertyValidationService : IPropertyValidationService
Constructors
PropertyValidationService(PropertyEditorCollection, IDataTypeService, ILocalizedTextService, IValueEditorCache)
Declaration
public PropertyValidationService(PropertyEditorCollection propertyEditors, IDataTypeService dataTypeService, ILocalizedTextService textService, IValueEditorCache valueEditorCache)
Parameters
Type |
Name |
Description |
PropertyEditorCollection |
propertyEditors |
|
IDataTypeService |
dataTypeService |
|
ILocalizedTextService |
textService |
|
IValueEditorCache |
valueEditorCache |
|
Methods
IsPropertyDataValid(IContent, out IProperty[], CultureImpact)
Declaration
public bool IsPropertyDataValid(IContent content, out IProperty[] invalidProperties, CultureImpact impact)
Parameters
Type |
Name |
Description |
IContent |
content |
|
IProperty[] |
invalidProperties |
|
CultureImpact |
impact |
|
Returns
Type |
Description |
System.Boolean |
|
IsPropertyValid(IProperty, String, String)
Declaration
public bool IsPropertyValid(IProperty property, string culture = "*", string segment = "*")
Parameters
Type |
Name |
Description |
IProperty |
property |
|
System.String |
culture |
|
System.String |
segment |
|
Returns
Type |
Description |
System.Boolean |
|
ValidatePropertyValue(IDataEditor, IDataType, Object, Boolean, String, String, String)
Declaration
public IEnumerable<ValidationResult> ValidatePropertyValue(IDataEditor editor, IDataType dataType, object postedValue, bool isRequired, string validationRegExp, string isRequiredMessage, string validationRegExpMessage)
Parameters
Type |
Name |
Description |
IDataEditor |
editor |
|
IDataType |
dataType |
|
System.Object |
postedValue |
|
System.Boolean |
isRequired |
|
System.String |
validationRegExp |
|
System.String |
isRequiredMessage |
|
System.String |
validationRegExpMessage |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ValidationResult> |
|
ValidatePropertyValue(IPropertyType, Object)
Declaration
public IEnumerable<ValidationResult> ValidatePropertyValue(IPropertyType propertyType, object postedValue)
Parameters
Type |
Name |
Description |
IPropertyType |
propertyType |
|
System.Object |
postedValue |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ValidationResult> |
|