Share via


RelayValidationRule Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.MVVM.ValidationRule
    Microsoft.TeamFoundation.MVVM.RelayValidationRule

Namespace:  Microsoft.TeamFoundation.MVVM
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Syntax

'Declaration
Public Class RelayValidationRule _
    Inherits ValidationRule
public class RelayValidationRule : ValidationRule
public ref class RelayValidationRule : public ValidationRule
type RelayValidationRule =  
    class 
        inherit ValidationRule 
    end
public class RelayValidationRule extends ValidationRule

The RelayValidationRule type exposes the following members.

Constructors

  Name Description
Public method RelayValidationRule(String, Func<Object, String>)
Public method RelayValidationRule(String, String, Func<Object, Boolean>)

Top

Properties

  Name Description
Public property Error A descriptive text about the error. This property is only applicable if the rule is broken. (Inherited from ValidationRule.)
Public property PropertyName (Inherited from ValidationRule.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode (Inherited from ValidationRule.)
Protected method GetPropertyValue(Object) (Inherited from ValidationRule.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString (Inherited from ValidationRule.)
Public method Validate (Overrides ValidationRule.Validate(Object).)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.MVVM Namespace