Compartilhar via


ComplexObject.ValidateProperty Method

Include Protected Members
Include Inherited Members

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Validates whether the specified value is valid for a specified property of the current complex object.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Protected method ValidateProperty(ValidationContext, Object) Validates whether the specified property value is valid for a specified ValidationContext.
Protected method ValidateProperty(String, Object) Validate whether the specified value is valid for the specified property of the current complex object.

Top

Remarks

These methods evaluate all the ValidationAttribute associated with the specified property, accumulating the validation errors and surfacing them through the ValidationErrors property.

They also verify that the property is not read-only.

All validation logic is bypassed if this instance is currently being deserialized.

See Also

Reference

ComplexObject Class

System.ServiceModel.DomainServices.Client Namespace